SQL Server doesn’t support array’s within or outside of stored procedures. The closest thing that SQL Server has would be a table variable. It’s accessed just like a regular or temp table, but it’s done mostly in memory. <pre>DECLARE @TableVar TABLE (Col1 INT, Col2 INT, Col3 VARCHAR(10)) INSERT INTO @TableVar SELECT 1, 2, ‘test’ SELECT [...]
SQL Server 2005 includes some native encryption procedures which you can use to encrypt the data. However decrypting the data on the SQL 2000 server or the Access database will be harder as they don’t include the same encryption procedures. (SQL 2000 doesn’t include any native encryption procedures at all.) If you have the option [...]
What you want is actually a stored procedure not a trigger. Triggers can not be fired off on schedule, while stored procedures can. First you need to write your select statement which simply returns the data that you need to load into the destination table. The query will look something like this. <pre>SELECT IdField, AVG(NumericField) [...]
There is no sure fire step by step process to trouble shooting high CPU load on the SQL Server. A first step would be to use SQL Profiler to see what queries are taking the longest, and the most CPU time. Open SQL Profiler from Start > Programs > Microsoft SQL Server 2005 > Performance [...]
You have to run through the installer a second time. During the install the installer will ask you what the name of the instance should be. A reboot will be required after the install, and then another reboot will be required after SP2 is installed. Your default instance will not be effected except for being [...]
The MAXDOP is used like this. <pre>SELECT * FROM TABLE WHERE Col1 = ‘Value’ OPTION (MAXDOP 1)</pre> Basically it should be the last line of the SELECT statement.
It sounds like there is a problem decoding the credentials when opening the saved package. When you setup the package what encryption level did you select?
Before I start, let me say that I’ve clustered SSIS and it works just fine. Assuming that you decide to continue to leave SSIS un-clustered what you’ll want to do is. Edit the xml config file for the SSIS service and add in nodes for each SQL instance so that SSIS can access each instances [...]
1. SQL does not install the client tools by default. If you have to have the tools installed on your server you’ll need to run through the installer again and install the client tools. On the page with the list of services the last one on the list is the client tools. It is common [...]
When you fail over to the mirror, once the primary server is back online SQL will automatically being feeding the transactions back. When you look at the databases in the UI it will say if it’s mirroring or synchronized. If it says that it is synchronized then there are no pending transactions to be sent. [...]
No you do not have to remove the replication when installing the SQL Server service packs. You shouldn’t have had to do this in SQL 2000 either. It’s been a while since I’ve had to service pack a SQL 2000 machine with replication setup, but I don’t remember having to break the replication.
Yes you can do this, however it is not recommended. You have to use a technique called dynamic SQL. There are security risks on using dynamic SQL as the user who runs the procedure much have access to the table or tables listed in the dynamic SQL, and dynamic SQL is subject to a SQL [...]
You’ve got a couple of options here. 1. On server1 create a linked server to server2 using the sp_addlinkedserver procedure. Then use a query from server1 to join the two tables together (using what ever columns are needed). <pre>SELECT T1.* FROM DB1.dbo.T1 T1 INNER JOIN SERVER2.DB2.dbo.T2 T2 ON T1.ID = T2.ID</pre> 2. Setup working tables [...]
Basically you want to make sure that the ranges are large enough that you can’t run out of IDs between merges. If you do a merge every 1 hour and you add in 10000 new records per server per hour at peak you should have at least 12000 IDs in the range so that you [...]
Did you try to download SQL Server 2000 Driver for JDBC SP3 or SQL Server 2000 Driver for JDBC SP2? If not, you can find them here: http://support.microsoft.com/default.aspx/ph/2852?cid=C_48273 Thanks! Joelle
This answer may help you <a href=”http://itknowledgeexchange.techtarget.com/itanswers/how-to-encrypt-a-column-in-sql-server-20002005/”>http://itknowledgeexchange.techtarget.com/itanswers/how-to-encrypt-a-column-in-sql-server-20002005/</a> If your C# application is using stored procedures to access the data then you can change the stored procedures to use the code in the above link. If you aren’t using stored procedures then you’ll need to get the source code to modify it. There is no way [...]
Typically not. What components did you have in mind?
.DAT files aren’t usually SQL Server databases. Microsoft SQL Server database files are usually MDF and LDF files with the MDF files being the data file and the LDF being the log file. Microsoft SQL Server hasn’t used the .DAT file extension since SQL Server 6.5. Are you sure that this is a SQL Server [...]
This is a good article I have read on reindexing a sql 2000 DB. It has some basic steps you can take as well as some more in-depth steps that will work better on large databases. <a href=”http://www.sql-server-performance.com/articles/per/automatic_reindexing_sql2000_p1.aspx”>http://www.sql-server-performance.com/articles/per/automatic_reindexing_sql2000_p1.aspx</a> The easiest way is to setup a SQL Server maintenance plan. These plans can be configured to [...]
You can not backup a database and restore it to a prior version of SQL Server. You’ll need to script out the objects and then copy the data from the SQL 2008 database to the SQL 2005 database.





