Click here to Skip to main content
15,899,754 members
Home / Discussions / Database
   

Database

 
AnswerRe: Datawarehousing in oracle Pin
Dr.Walt Fair, PE18-May-10 12:45
professionalDr.Walt Fair, PE18-May-10 12:45 
Questioncall an SQL function in VBscript Pin
richa02118-May-10 11:40
richa02118-May-10 11:40 
AnswerRe: call an SQL function in VBscript Pin
Dimitri Witkowski20-May-10 10:12
Dimitri Witkowski20-May-10 10:12 
Questionsql server insert Pin
msomar17-May-10 16:01
msomar17-May-10 16:01 
AnswerRe: sql server insert Pin
Luc Pattyn17-May-10 16:30
sitebuilderLuc Pattyn17-May-10 16:30 
GeneralRe: sql server insert Pin
msomar17-May-10 16:58
msomar17-May-10 16:58 
GeneralRe: sql server insert Pin
Luc Pattyn17-May-10 17:40
sitebuilderLuc Pattyn17-May-10 17:40 
GeneralRe: sql server insert Pin
Bernhard Hiller17-May-10 19:43
Bernhard Hiller17-May-10 19:43 
How to use a parameterized query, using your code as an example:
sql = "insert into AdCampaign (CampaignName) values(@myParameter)";
SqlCommand cmd = new SqlCommand(sql, con);
cmd.Parameters.AddWithValue("myParameter", Session["CampaignName"]);

I.e. in your sql statement, no values are shown, but only the parameters; with SQL Server, parameter names use to start with an @. After having created the command object, you add all of your parameters with their respective values.
GeneralRe: sql server insert Pin
msomar17-May-10 21:36
msomar17-May-10 21:36 
GeneralRe: sql server insert Pin
T M Gray18-May-10 7:56
T M Gray18-May-10 7:56 
GeneralRe: sql server insert Pin
Luc Pattyn18-May-10 8:45
sitebuilderLuc Pattyn18-May-10 8:45 
GeneralRe: sql server insert Pin
Shameel23-May-10 5:25
professionalShameel23-May-10 5:25 
AnswerRe: sql server insert Pin
Md. Marufuzzaman17-May-10 19:57
professionalMd. Marufuzzaman17-May-10 19:57 
QuestionDatabase Size Issues Pin
Ed Hill _5_16-May-10 22:46
Ed Hill _5_16-May-10 22:46 
AnswerRe: Database Size Issues Pin
loyal ginger17-May-10 1:36
loyal ginger17-May-10 1:36 
GeneralRe: Database Size Issues Pin
Ed Hill _5_17-May-10 10:26
Ed Hill _5_17-May-10 10:26 
GeneralRe: Database Size Issues Pin
loyal ginger17-May-10 14:10
loyal ginger17-May-10 14:10 
AnswerRe: Database Size Issues Pin
David Mujica17-May-10 3:17
David Mujica17-May-10 3:17 
GeneralRe: Database Size Issues Pin
Ed Hill _5_17-May-10 10:27
Ed Hill _5_17-May-10 10:27 
AnswerRe: Database Size Issues Pin
The Man from U.N.C.L.E.17-May-10 3:50
The Man from U.N.C.L.E.17-May-10 3:50 
QuestionGeneric database system Pin
vjvjvjvj16-May-10 22:32
vjvjvjvj16-May-10 22:32 
AnswerRe: Generic database system Pin
R. Giskard Reventlov16-May-10 23:03
R. Giskard Reventlov16-May-10 23:03 
AnswerRe: Generic database system Pin
PIEBALDconsult18-May-10 5:35
mvePIEBALDconsult18-May-10 5:35 
QuestionGetting Database Names from Server Pin
PDTUM16-May-10 10:47
PDTUM16-May-10 10:47 
AnswerRe: Getting Database Names from Server Pin
Eddy Vluggen16-May-10 14:41
professionalEddy Vluggen16-May-10 14:41 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.