Click here to Skip to main content
15,915,328 members
Home / Discussions / Database
   

Database

 
GeneralRe: Q: MsSQL dynamic Search with lot of conditions Pin
Stan Angeloff1-Jun-05 7:14
Stan Angeloff1-Jun-05 7:14 
GeneralRe: Q: MsSQL dynamic Search with lot of conditions Pin
Christian Graus1-Jun-05 11:34
protectorChristian Graus1-Jun-05 11:34 
GeneralThank you! Pin
Stan Angeloff2-Jun-05 8:28
Stan Angeloff2-Jun-05 8:28 
GeneralRe: Thank you! Pin
Christian Graus2-Jun-05 10:17
protectorChristian Graus2-Jun-05 10:17 
GeneralRe: Thank you! Pin
Vertyg05-Jun-05 1:53
Vertyg05-Jun-05 1:53 
GeneralRe: Thank you! Pin
Christian Graus5-Jun-05 11:18
protectorChristian Graus5-Jun-05 11:18 
GeneralFunction returning Table (SQL) Pin
LIUCKAS31-May-05 0:28
LIUCKAS31-May-05 0:28 
GeneralExecuting a query Pin
Pothirajan C30-May-05 19:15
Pothirajan C30-May-05 19:15 
I have the following query statement in RichTextBox control
While executing i am reading the text from the Richtextbox and passing it to
SqlDataAdapter object. But it is telling me that incorrect syntax near 'GO'
statement

MyQuery:

if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[sp_createAddEditscript]') and OBJECTPROPERTY(id, N'IsProcedure') = 1)
drop procedure [dbo].[sp_createAddEditscript]
GO

MyCode:

try
{
SqlConnection con = new SqlConnection(conStr);
SqlDataAdapter da = new SqlDataAdapter(this.richTextBox1.Text.ToString(), con);
DataSet ds = new DataSet();
da.Fill(ds);
//this.dataGrid1.DataSource = ds.Tables[0];

}
catch (SqlException e1)
{
MessageBox.Show(e1.Message);
}

Please help me

Thanks in Advance,
Pothirajan C

GeneralRe: Executing a query Pin
MasudM30-May-05 21:17
MasudM30-May-05 21:17 
GeneralRe: Executing a query Pin
Colin Angus Mackay30-May-05 22:18
Colin Angus Mackay30-May-05 22:18 
GeneralUpdate query Pin
jetset3230-May-05 1:19
jetset3230-May-05 1:19 
GeneralRe: Update query Pin
Christian Graus30-May-05 12:16
protectorChristian Graus30-May-05 12:16 
GeneralRe: Update query Pin
Anonymous2-Jun-05 3:37
Anonymous2-Jun-05 3:37 
GeneralRe: Update query Pin
jetset324-Jun-05 10:49
jetset324-Jun-05 10:49 
GeneralRe: Update query Pin
Christian Graus5-Jun-05 11:17
protectorChristian Graus5-Jun-05 11:17 
GeneralRe: Update query Pin
jetset3217-Jun-05 22:03
jetset3217-Jun-05 22:03 
GeneralRe: Update query Pin
Christian Graus20-Jun-05 13:30
protectorChristian Graus20-Jun-05 13:30 
GeneralRe: Update query Pin
jetset3221-Jun-05 20:16
jetset3221-Jun-05 20:16 
GeneralGet the updated record Pin
Yulianto.29-May-05 21:51
Yulianto.29-May-05 21:51 
QuestionSummarization of time - help please?? Pin
Masoud_TB29-May-05 19:39
Masoud_TB29-May-05 19:39 
GeneralAccess table schema Pin
RFickling29-May-05 17:44
RFickling29-May-05 17:44 
QuestionAdding a column in result set programically using SQL??? Pin
alex.barylski29-May-05 14:13
alex.barylski29-May-05 14:13 
AnswerRe: Adding a column in result set programically using SQL??? Pin
Colin Angus Mackay29-May-05 20:02
Colin Angus Mackay29-May-05 20:02 
Generalremove ignored words - indexing service Pin
a_r_2129-May-05 5:37
a_r_2129-May-05 5:37 
Generalmis , remove ignored words - *full-text catalog Pin
a_r_2129-May-05 12:54
a_r_2129-May-05 12:54 

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.