sql-server-2005-express

Why does my typed dataset not like temporary tables?

一世执手 提交于 2019-11-30 18:47:46
I am attempting add a tableadapter to a stored procedure in my SQL Server 2005 Express. The stored procedure, however, uses a temporary table called #temp. When creating the table adapter, Visual Studio complains "Unknown Object '#temp'" and says that the stored procedure returns 0 columns. This is problematic because I use that stored procedure with a crystal report, and need those columns. How can I fix this? Bizarre. According to this you add IF 1=0 BEGIN SET FMTONLY OFF END to the SP right after the AS part of the SP and it works. Visual Studio now has no problem with it. I have no idea

How can I join on a stored procedure?

浪子不回头ぞ 提交于 2019-11-30 04:39:52
I have a stored procedure that takes no parameters, and it returns two fields. The stored procedure sums up all transactions that are applied to a tenant, and it returns the balance and the id of the tenant. I want to use the record set it returns with a query, and I need to join it's results on the id of the tenant. This is my current query: SELECT t.TenantName, t.CarPlateNumber, t.CarColor, t.Sex, t.SSNO, t.Phone, t.Memo, u.UnitNumber, p.PropertyName FROM tblTenant t LEFT JOIN tblRentalUnit u ON t.UnitID = u.ID LEFT JOIN tblProperty p ON u.PropertyID = p.ID ORDER BY p.PropertyName, t

Why does my typed dataset not like temporary tables?

醉酒当歌 提交于 2019-11-30 03:11:46
问题 I am attempting add a tableadapter to a stored procedure in my SQL Server 2005 Express. The stored procedure, however, uses a temporary table called #temp. When creating the table adapter, Visual Studio complains "Unknown Object '#temp'" and says that the stored procedure returns 0 columns. This is problematic because I use that stored procedure with a crystal report, and need those columns. How can I fix this? 回答1: Bizarre. According to this you add IF 1=0 BEGIN SET FMTONLY OFF END to the SP

How to install SQL Server 2005 Express in Windows 8

浪子不回头ぞ 提交于 2019-11-27 18:52:29
I tried to install SQL Server 2005 Express SP3 x64 on Windows 8 but the installer gives me an error: An installation package for the product Microsoft SQL server native Client cannot be found. Try the installation again using a valid copy of the installation package 'sqlncli_x64.msi' How can I solve the problem? Sohail I had the same problem. But I also had to perform additional steps. Here is what I did. Perform the following steps (Only 64bit version of SQL Server 2005 Developer Edition tested on Windows 8 Pro 64bit) Extract sqlncli.msi / sqlncli_x64.msi from SP3 or SP4. I did it from SP4

Error message: (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.)

别说谁变了你拦得住时间么 提交于 2019-11-27 04:20:17
I am trying to deploy my website on windows server 2003. Am i missing something or what is wrong from the following error message, how can I correct it? Thank I am having the error message: A connection was successfully established with the server, but then an error occurred during the login process. (provider: Shared Memory Provider, error: 0 - No process is on the other end of the pipe.) Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception

How to change identity column values programmatically?

社会主义新天地 提交于 2019-11-26 11:14:50
I have a MS SQL 2005 database with a table Test with column ID . ID is an identity column. I have rows in this table and all of them have their corresponding ID auto incremented value. Now I would like to change every ID in this table like this: ID = ID + 1 But when I do this I get an error: Cannot update identity column 'ID'. I've tried this: ALTER TABLE Test NOCHECK CONSTRAINT ALL set identity_insert ID ON But this does not solve the problem. I need to have identity set to this column, but I need to change values as well from time to time. So my question is how to accomplish this task. A-K

How to change identity column values programmatically?

点点圈 提交于 2019-11-26 02:08:51
问题 I have a MS SQL 2005 database with a table Test with column ID . ID is an identity column. I have rows in this table and all of them have their corresponding ID auto incremented value. Now I would like to change every ID in this table like this: ID = ID + 1 But when I do this I get an error: Cannot update identity column \'ID\'. I\'ve tried this: ALTER TABLE Test NOCHECK CONSTRAINT ALL set identity_insert ID ON But this does not solve the problem. I need to have identity set to this column,