Click here to Skip to main content
16,007,760 members
Home / Discussions / Database
   

Database

 
QuestionTextbox path to be populated in Datagrid Pin
david_reinjal25-Jun-06 21:14
david_reinjal25-Jun-06 21:14 
QuestionSyntax error in Field definition on Create Table using ODBC Pin
RobertW10025-Jun-06 10:06
RobertW10025-Jun-06 10:06 
AnswerRe: Syntax error in Field definition on Create Table using ODBC Pin
Rob Graham26-Jun-06 2:24
Rob Graham26-Jun-06 2:24 
GeneralRe: Syntax error in Field definition on Create Table using ODBC Pin
RobertW10027-Jun-06 4:24
RobertW10027-Jun-06 4:24 
Questionsuspect DB Pin
illusionFinder24-Jun-06 23:48
illusionFinder24-Jun-06 23:48 
AnswerRe: suspect DB Pin
Eric Dahlvang26-Jun-06 5:23
Eric Dahlvang26-Jun-06 5:23 
Questioncombobox binding Pin
md_refay24-Jun-06 23:48
md_refay24-Jun-06 23:48 
Questionscript execution Pin
_tasleem24-Jun-06 3:45
_tasleem24-Jun-06 3:45 
i want to generate table from sql script but dont know how to execute the sql script so i m using selected code from script file to generate table.
String strQuery="CREATE TABLE tblServer (ServerName nvarchar(50) NOT NULL,UserId nvarchar(50) NOT NULL,Password nvarchar(50) NOT NULL)";
SqlConnection conn= new SqlConnection(strConn);
conn.Open();
SqlCommand cmd=new SqlCommand(strQuery,conn);
cmd.ExecuteNonQuery();
conn.Close();

but it gives sql exception i dont know why.what i want to do is create table when app starts on sql server. if you tell me technique of executing sql srcipt file or other method



Tasleem Arif
AnswerRe: script execution Pin
Colin Angus Mackay24-Jun-06 10:49
Colin Angus Mackay24-Jun-06 10:49 
Questioncan we generate a trigger for two tables? Pin
laxman.m23-Jun-06 21:24
laxman.m23-Jun-06 21:24 
AnswerRe: can we generate a trigger for two tables? Pin
Mairaaj Khan23-Jun-06 23:56
professionalMairaaj Khan23-Jun-06 23:56 
Questionunused space Pin
manolomachin23-Jun-06 13:32
manolomachin23-Jun-06 13:32 
AnswerRe: unused space Pin
Mairaaj Khan23-Jun-06 23:41
professionalMairaaj Khan23-Jun-06 23:41 
GeneralRe: unused space Pin
manolomachin26-Jun-06 5:18
manolomachin26-Jun-06 5:18 
AnswerRe: unused space Pin
Mike Dimmick27-Jun-06 0:28
Mike Dimmick27-Jun-06 0:28 
GeneralRe: unused space Pin
manolomachin28-Jun-06 8:54
manolomachin28-Jun-06 8:54 
QuestionSQL Update problem I'm still having. Pin
PyroManiak23-Jun-06 8:59
PyroManiak23-Jun-06 8:59 
QuestionRe: SQL Update problem I'm still having. Pin
Alexander Wiseman23-Jun-06 9:15
Alexander Wiseman23-Jun-06 9:15 
AnswerRe: SQL Update problem I'm still having. Pin
PyroManiak23-Jun-06 9:53
PyroManiak23-Jun-06 9:53 
GeneralRe: SQL Update problem I'm still having. Pin
Alexander Wiseman23-Jun-06 10:59
Alexander Wiseman23-Jun-06 10:59 
GeneralRe: SQL Update problem I'm still having. Pin
PyroManiak23-Jun-06 12:35
PyroManiak23-Jun-06 12:35 
GeneralRe: SQL Update problem I'm still having. Pin
Alexander Wiseman23-Jun-06 13:20
Alexander Wiseman23-Jun-06 13:20 
Questiondatabase newbie; what do i need in order to accomplish the following simple application Pin
katsolimon23-Jun-06 6:19
katsolimon23-Jun-06 6:19 
AnswerRe: database newbie; what do i need in order to accomplish the following simple application Pin
Kschuler23-Jun-06 9:22
Kschuler23-Jun-06 9:22 
GeneralRe: database newbie; what do i need in order to accomplish the following simple application Pin
katsolimon23-Jun-06 11:21
katsolimon23-Jun-06 11:21 

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.