Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

I want to bind NULL value using SQLBindParameter() !!

Posted on 2003-03-16
2
Medium Priority
?
788 Views
Last Modified: 2012-05-04
I want to execute following SQL statement...

insert into test_table values (1, CONVERT(datetime, null));

test_table is simple. it has numeric, datetime column.
But actually I using following SQL statement...

insert into test_table values (?, CONVERT(datetime, ?));

So... I must use SQLBindParamenter() function

But I don't know how to bind NULL value using this function...
Is there anybody who can show me the example code ?
0
Comment
Question by:ignung
2 Comments
 
LVL 6

Accepted Solution

by:
jchopde earned 100 total points
ID: 8149476
0
 

Author Comment

by:ignung
ID: 8324966
Thank you!!
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have a large data set and a SSIS package. How can I load this file in multi threading?
MSSQL DB-maintenance also needs implementation of multiple activities. However, unprecedented errors can hamper the database management. In that case, deploying Stellar SQL Database Toolkit ensures fast and accurate database and backup repair as wel…
Via a live example, show how to setup several different housekeeping processes for a SQL Server.
Viewers will learn how to use the SELECT statement in SQL and will be exposed to the many uses the SELECT statement has.
Suggested Courses

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question