sql-server-2005
Can't identify reason for BULK INSERT errors
I\'m trying to run this query (I also tried it without specifying FIELDTERMINATOR and ROWTERMINATOR). It\'s using a datafile that I am manually creating beforehand (not with bcp out).[详细]
2023-04-10 18:36 分类:问答SQL Unpivot with row numbers
I have a SELECT statement with UNPIVOT SELECT dycd_acnam, dycd_dynam, dycd_value FROM GCATT.dbo.tblDaycode UNPIVOT ([详细]
2023-04-10 17:19 分类:问答Is this an inefficient way to write a SQL query?
Let\'s suppose I had a view, like this: CREATE VIEW EmployeeView AS SELECT ID, Name, Salary(PaymentPlanID) AS Payment[详细]
2023-04-10 15:38 分类:问答How to add foreign key to already created table
I have created 2 table.Brand and Product.In both table one id is primary key and it has identity.According to foreign key constrain,it should be primary ke开发者_如何学运维y of another table.I want to[详细]
2023-04-10 13:23 分类:问答Conversion failed when converting the varchar value '*' to data type int
I\'m getting this issue when i\'m running nested while loops in sql server 2005. My outer loop gets one iteration, and then my inner loop gets it\'s full first iteration, but my statement after the i[详细]
2023-04-10 12:38 分类:问答Group by and aggregate values
Id开发者_StackOverflowUser Val1 Val2 11910115 Fred 123 -0.000137 11910116 Fred 456 0 11910117 Fred 789 0.0002[详细]
2023-04-10 10:14 分类:问答SQL for selecting a cluster of records from a huge table with optimum SQL
I\'m trying to paginate using MS SQL Server 2005 in one of my ASP net applications. To fetch 10 records from the employee table I\'m running the following SQL.[详细]
2023-04-10 09:54 分类:问答Preventing entire table from locking while bulk INSERT
I have a stored procedure that performs a bulk insert in a table. I added BEGIN TRANSACTION command just above the INSERT query to enable ROLL BACK if something goes wrong. When the bulk insert initia[详细]
2023-04-10 08:04 分类:问答Substract 1 month to update table SQL Server
I need to update all the issuedat (date field) to be less than one month from the column paidat (date field)[详细]
2023-04-10 07:52 分类:问答how to insert data in table using select statement in sql server
I have two tablesLogin table anduserinfo table. UserInfo table is primary key(UserId) table and login table is foreign key(U开发者_开发知识库serId) table. So my problem is when i insert data in login[详细]
2023-04-10 06:35 分类:问答