sqlcommand
When should "SqlDbType" and "size" be used when adding SqlCommand Parameters?
There is a related question to this: What's the best method to pass parameters to SQLCommand? But I am wanting to know what the differences are and if there are any problems with the different w[详细]
2023-02-03 05:17 分类:问答Why am I getting an error with my parameterized ADO query?
Dim txtFName As TextBox = CType(Wizar开发者_JS百科d1.FindControl(\"txtFName\"), TextBox) Dim txtLName As TextBox = CType(Wizard1.FindControl(\"txtLName\"), TextBox)[详细]
2023-01-31 14:13 分类:问答Parameterized SqlCommand - advantage of specifying SqlDbType?
Folks, Unless I\'m mistaken, a parameterized sql query can be generated by specifying SqlDbType for each parameter or not.It s开发者_如何学JAVAeems that I can construct an SqlParameter by providing t[详细]
2023-01-31 11:45 分类:问答MS Access queries
I must understand few things about MS access queries, and this is why I\'m coming here. First of all - my task list is written in Latvian (hate that), this is why I can\'t understand simple things.[详细]
2023-01-30 19:06 分类:问答Multiple values of the same column name in SQL
this might seem like a weird question, earlier I posted another question on ASP multiple values through a session variable, I\'ve now figured that out and have managed to pass all three values for ins[详细]
2023-01-27 07:06 分类:问答Checking a directory contains files or not - tsql
I\'m trying to code a mssql job that does something using the files in a specific directory. But I don\'t know the name of the file / files, they will vary in time.[详细]
2023-01-23 11:02 分类:问答How to pass variable into SqlCommand statement and insert into database table
I\'m writing a small program in C# that uses SQL to store values into a database at runtime based on input by the user.[详细]
2023-01-22 10:03 分类:问答Why both SqlConnection and SqlTransaction are present in SqlCommand constructor?
I wonder, what is the reason to have this SqlCommand constructor overload: public SqlCommand( string cmdText,[详细]
2023-01-21 15:39 分类:问答Why has the overloaded Add been replaced with AddWithValue?
The overloaded method SqlParameterCollection.Add(String, Object) has been marked as d开发者_如何学Ceprecated since version 3.5 SP1 of the .NET Framework. You should use the AddWithValue() method that[详细]
2023-01-19 05:26 分类:问答How do I add multiple rows in a table?
string date = p_text_data.Text; string sql = @\"INSERT INTO Warehouse (title,count,price,date) \"; try {[详细]
2023-01-18 00:58 分类:问答