You can try starving the system of memory. Set the database server to only have access to a few megs of memory. This should make the system very unresponsive.
First you should get used to using the new syntax for writing joins as eventually the old syntax (which you used) will no longer be supported. <pre>SELECT * FROM a INNER JOIN b ON a.xx = b.xx</pre> As for why this is slow you probably don’t have the correct indexes on table b. Also if [...]
Please refer to this article below http://www.codeproject.com/kb/aspnet/ssis_dotnet.aspx
You can create this linked server just as you would any other linked server. For the server name simply specify SERVERNAMEINSTANCENAME. As the SQL 2005 instance is on the same server you can setup the connection to map the domain users to them selves. If you need SQL Accounts to have access to the SQL [...]
You wouldn’t use triggers to log errors into the SQL Server. You would need to put code into the stored procedures that make up your application to log any errors which are encountered.
And what information is returned when you run DBCC CHECKDB against the databases?
In SQL Server 2005 there are no longer any system tables. There are now system catalog views which look into the system catalog to get the information. These catalog views are used to view the metadata about the objects in the database. These views are read only and not be modified. You need to modify [...]
<a href=”http://www.sqlservercentral.com/articles/Compression/62746/”>Here is a good resource,</a> but you will have to sign up for a free account first. Here is another <a href=”http://technet.microsoft.com/en-us/magazine/cc434690.aspx”>good article</a> on Technet.
Hi, If you’re running your SQL statement from STRSQL – Press F13 (Services), select option 1 (Change session attributes), Change the “SELECT Output” parameter to option 2 = Printer. Regards, Martin Gilbert.
Have you tried the following already ? <li>Check the Login account for the service and if it using a user account make sure you have the right password stored in there. </li><li>Check the Application/System logs. What error messages do you see there ?</li><li>Has anything changed recently on your server ? Upgrades etc ?</li><li>What version/edition of [...]
You can take your SQL 7 databases and detach them from the SQL 7 instance, then move them to the SQL 2005 server, and attach them to the SQL 2005 Instance. This <a href=”http://support.microsoft.com/kb/246133/”>MS KB</a> will show you how to migrate your logins from one SQL Server to another. The process it self is fairly [...]
Check the status of the service from Administrative Tools - is the service Running or Starting? Alerts and operators can be edited without Agent running. Also check your Agent.out file. See if you see: “… ? [393] Waiting for SQL Server to recover databases…” If you tried stopping and then restarting just the Agent service [...]
Fire up SQL Profiler and see what the actual command is that is being run against the SQL Server.
What version of SQL Server are you looking at? Most SQL service packs can not be uninstalled. You need to uninstall the SQL Server, and reinstall it, then apply the older service pack.
Who are you trying to hide the trigger from? Assuming that you are trying to hide the trigger from the DBA you can’t. Users who are members of the sysadmin fixed server role can see all the objects on the server. People who aren’t sysadmin or dbo of the database can not see objects which [...]
You will want to use the sp_executesql stored procedure to do this. Something like this. <pre>CREATE procedure [dbo].[sp_trip_number] @Table_Name nvarchar(100), @Trip_Number int output as begin set nocount on begin transaction DECLARE @DynamicSQL NVARCHAR(1000) DECLARE @New_Trip_Number int SET @DynamicSQL=’INSERT INTO ‘ + @Table_Name + ‘ DEFAULT VALUES; SELECT @New_Trip_Number = SCOPE_IDENTITY()’ exec sp_executesql @DynamicSQL, ‘@New_Trip_Number INT’, [...]
The following query will give you that information for a specific table: <pre> select column_name,data_type,data_length,data_precision,nullable,column_id from all_tab_columns atc, all_tables at where atc.table_name = at.table_name and atc.owner = at.owner and at.owner = ‘&owner’ and at.table_name = ‘&table’ and atc.num_nulls < at.num_rows order by atc.column_id;</pre> (I tested it on Oracle 8i, thereby I could not use the [...]
Upgrade SQL Server with the Copy Database Wizard This topic describes how to use the Copy Database Wizard to upgrade a SQL Server database to a later version. When using the Copy Database Wizard to upgrade a database, adhere to the following requirements: * Before upgrading, make sure that no applications or services are trying [...]
SQL Server 2005 doesn’t have an upgrade license available so you have to purchase a new SQL Server 2005 Enterprise license. If you are using CPU licensing the licenses retail for $25,000 US per CPU. If you are using CAL based licenses then the server license cost retails for $13,819 US. If you are using [...]
The question is a bit vague. I am assuming the question is: - we have item records with one or more prices that change over time - any given item record may have one or more prices - if an item has two or more price records, how can I get the next to the [...]





