Click here to Skip to main content
15,891,013 members
Home / Discussions / Database
   

Database

 
QuestionNeed help with tailoring a big sql statement Pin
MasterShin3-Mar-07 11:52
MasterShin3-Mar-07 11:52 
AnswerRe: Need help with tailoring a big sql statement Pin
WoutL3-Mar-07 12:07
WoutL3-Mar-07 12:07 
GeneralRe: Need help with tailoring a big sql statement Pin
MasterShin3-Mar-07 20:50
MasterShin3-Mar-07 20:50 
GeneralRe: Need help with tailoring a big sql statement Pin
WoutL3-Mar-07 22:40
WoutL3-Mar-07 22:40 
QuestionHow should I deal with a table holding my time as Hour, Minute, and Second? Pin
Khoramdin3-Mar-07 5:57
Khoramdin3-Mar-07 5:57 
AnswerRe: How should I deal with a table holding my time as Hour, Minute, and Second? Pin
Hesham Amin3-Mar-07 11:48
Hesham Amin3-Mar-07 11:48 
AnswerRe: How should I deal with a table holding my time as Hour, Minute, and Second? Pin
alexrad4-Mar-07 4:32
alexrad4-Mar-07 4:32 
QuestionSQL COMMAND NOT WORKING Pin
govindkedia3-Mar-07 4:22
govindkedia3-Mar-07 4:22 
Hello group,

I am trying this command but i dont know its not working..
its not giving any error...but data is not getting inserted..i have tried to insert breakpoint..but program doesnt stop here..
about the databse structure..I am using SQL Server express edition
Site_ID is auto incremental in nature

Code is :

SqlDataSource siteDataSource = new SqlDataSource();
siteDataSource.ConnectionString = ConfigurationManager.ConnectionStrings["ProjectConnectionString"].ToString();

siteDataSource.InsertCommandType = SqlDataSourceCommandType.Text;
siteDataSource.InsertCommand = "INSERT INTO site(Site_Id,Site,Address,City,State,Zip,Country,Date,Institution_Id,Project_id) VALUES (@Site, @Address, @City, @State, @Zip, @Country, @Date, @Institution_Id, @Project_id)";

siteDataSource.InsertParameters.Add("Site_Id", siteidTextBox.ToString());
siteDataSource.InsertParameters.Add("Site", sitenameTextBox.Text);
siteDataSource.InsertParameters.Add("Address", addressTextBox.Text);
siteDataSource.InsertParameters.Add("City", cityTextBox.Text);
siteDataSource.InsertParameters.Add("State", stateTextBox.Text);
siteDataSource.InsertParameters.Add("Zip", zipTextBox.Text);
siteDataSource.InsertParameters.Add("Country", countryTextBox.Text);
siteDataSource.InsertParameters.Add("Date", dateTextBox.ToString());
siteDataSource.InsertParameters.Add("Institution_Id", irbDropDownList.SelectedValue.ToString());
siteDataSource.InsertParameters.Add("Project_id", projectTextBox.ToString());



Kindly Please Tell me where I could Make changes....




Govind

AnswerRe: SQL COMMAND NOT WORKING Pin
Hesham Amin3-Mar-07 11:55
Hesham Amin3-Mar-07 11:55 
QuestionHow to find no of slot empty of rack Pin
mohd imran abdul aziz2-Mar-07 23:14
mohd imran abdul aziz2-Mar-07 23:14 
QuestionRe: How to find no of slot empty of rack Pin
Hesham Amin3-Mar-07 3:02
Hesham Amin3-Mar-07 3:02 
QuestionWhat is N' ? Whats it use Pin
Ankur.Bakliwal2-Mar-07 19:47
Ankur.Bakliwal2-Mar-07 19:47 
AnswerRe: What is N' ? Whats it use Pin
Hesham Amin2-Mar-07 22:31
Hesham Amin2-Mar-07 22:31 
GeneralRe: What is N' ? Whats it use Pin
Ankur.Bakliwal2-Mar-07 22:33
Ankur.Bakliwal2-Mar-07 22:33 
Questionsql server user authentication Pin
rrrriiizz2-Mar-07 17:36
rrrriiizz2-Mar-07 17:36 
AnswerRe: sql server user authentication Pin
Krish - KP2-Mar-07 19:45
Krish - KP2-Mar-07 19:45 
GeneralRe: sql server user authentication Pin
rrrriiizz3-Mar-07 0:06
rrrriiizz3-Mar-07 0:06 
GeneralRe: sql server user authentication Pin
Krish - KP4-Mar-07 20:37
Krish - KP4-Mar-07 20:37 
GeneralRe: sql server user authentication Pin
rrrriiizz4-Mar-07 21:52
rrrriiizz4-Mar-07 21:52 
QuestionRe: sql server user authentication Pin
rrrriiizz3-Mar-07 1:19
rrrriiizz3-Mar-07 1:19 
AnswerRe: sql server user authentication Pin
Krish - KP4-Mar-07 21:42
Krish - KP4-Mar-07 21:42 
GeneralRe: sql server user authentication Pin
rrrriiizz4-Mar-07 21:55
rrrriiizz4-Mar-07 21:55 
QuestionHow to configure SQL Server 2000 to allow remote connections ? Pin
hdv2122-Mar-07 13:02
hdv2122-Mar-07 13:02 
AnswerRe: remote server insert update delete Pin
Krish - KP2-Mar-07 19:55
Krish - KP2-Mar-07 19:55 
GeneralRe: remote server insert update delete Pin
alexrad2-Mar-07 22:08
alexrad2-Mar-07 22:08 

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.