You will need to uninstall the Management Studio, then install a retail copy to get the management studio back on the machine. You can also download the Express edition of SQL Server, but the management studio for Express is missing features.
Taking a stab that SQL server Data Engine = MSDE, aka SQL 2000 MSDE, you will need to upgrade to at least SQL Server Express 2005 (plus a few patches) for Vista compatibility. Try here. <a href=”http://www.microsoft.com/downloads/details.aspx?familyid=220549b5-0b07-4448-8848-dcc397514b41&displaylang=en”></a>
While it is possible to do this without a cursor, the resulting query will be (IMHO) highly inefficient as the database grows. Here is a query that will return your answer: select t.contractid, t.status, sum(datediff(d, t.fromdate, isnull(t.todate,getdate()))) days from ( select c1.contractid, c1.status, c1.moddate fromdate, c2.moddate todate from DurationCalc c1 outer join DurationCalc c2 on [...]
The sa password will be that of the SQL 2005 instance. Passwords are stored in the master database which you can not move from a SQL 2000 instance to a SQL 2005 instance.
By default everyone who is a member of the servers Administrators group is a member of the sysadmin role. This can be changed by removing the BUILTINAdministrators group from SQL Server’s sysadmin role. Before you do this be sure to grant the DBAs admin rights. Once the domain admins don’t have sysadmin rights to the [...]
From <a href=”http://msdn.microsoft.com/en-us/library/system.data.sqlclient.sqldataadapter.aspx”>MSDN</a>: <i>”The SqlDataAdapter, <b>serves as a bridge between a DataSet and SQL Server for retrieving and saving data</b>. The SqlDataAdapter provides this bridge by mapping Fill, which changes the data in the DataSet to match the data in the data source, and Update, which <b>changes the data in the data source to match [...]
Can you telnet from the remote machine to the SQL Server’s TCP port (usually port 1433)? If not then there is a firewall on either one of the machines, or on the network between you which is blocking the connection.
Why don’t you just try to change the password? If the old one works, you will successfully change to the new password. If the old one doesn’t work, then you will have confirmed that you don’t have the valid password to the account (bad news!). You should be able to alter the password with: ALTER [...]
Assuming that your Rules table always has TWO UnitId values, separated by a comma, then I would suggest using a function to return the two strings, e.g.: create function TwoStrings ( @inID int ) return varchar(255) begin declare @outString varchar(255) declare @temp varchar(128) declare @unitID1 varchar(32) declare @unitID2 varchar(32) set @temp = select UnitID from [...]
Have you had a look at the execution plan for the query ? A full table scan on a 30 million rows table would be expensive. ——————–
You can’t import the system tables. These hold the schemas of the objects that you are already scripting out.
Here is a <a href=”http://www.phwinfo.com/forum/ms-sqlserver-setup/201362-sql-2005-database-default-location-during-setup.html”>good discussion </a>which may help you. When you get to the list of services to install, click the Advanced button. Expand the SQL Server engine menu item, and select database files. Change the folder here. This will set the data file and log files to the same thing. You’ll need to [...]
You could add some logging to the procedure, for example, inserting into a log table, or using the <a href=”http://msdn.microsoft.com/en-us/library/aa260695(SQL.80).aspx”>xp_logevent procedure</a>. If you are using explicit transactions, you might want to log to a table variable, and insert to an actual database table from it after rolling back your transaction. ———————————— Odds are you are [...]
You’ll need to run a T/SQL task and put a DELETE or TRUNCATE statement in there to remove the data from the table.
<pre> USE yourdb GO ALTER TABLE dbo.yourtable ADD code1 VARCHAR(20) NULL ALTER TABLE dbo.yourtable ADD code2 VARCHAR(20) NULL GO DECLARE @number int DECLARE @code varchar(20) DECLARE @code1 varchar(20) DECLARE @code2 varchar(20) SELECT * INTO #yertbl FROM dbo.yourtable DECLARE tblcur CURSOR FOR SELECT number, code FROM #yertbl ORDER BY number OPEN tblcur FETCH NEXT FROM tblcur [...]
It may be just a simple matter of opening any external firewall before the ISA box to permit ICMP to reach this ISA server. However, ICMP is not really a good thing to leave open really. It can be used as an attack vector. I would recommend enabling a firewall and permitting only ICMP from [...]
Your table structures are needed in a question like this… The query would be something like this: <pre>SELECT DATEPART(mm,purchase_date),COUNT(*) FROM your_table WHERE purchase_date between ’2008-01-01′ and ’2008-12-31′ GROUP BY DATEPART(mm,purchase_date);</pre>
Questions: The 88 Million records – are they current? – Needed for periodic processing? – Does a purge process exist? 150 Logical Files — is it the PF with 88 million records??? – when considering the effect on updates/writes to the system discount any with Maintenance *DELAY or *ReBUILD – are updates/writes to this file [...]
If you are sure that the only non-numeric character that appears in the column is the asterisk, you could use the REPLACE function this way: <pre> UPDATE book SET your_column = REPLACE(your_column,'*','');</pre>
When you run the normal DBCC CHECKDB it will tell you what objects are having problems that require that data be deleted. After you have run DBCC CHECKDB you should restore the most recent backup that isn’t corrupt and find the exact records which are now missing so that you can replace them from the [...]





