I have a 32-bit XP with VS 2008 and SQL Server 2008, both Full and Express databases. I am trying to install SS 2005 Express and I get errors when I do saying that 2008 Express is a newer version. How do I uninstall 2008 Express?
...
How can I query a table which has a column of data type HIERARCHYID and get a list of descendants X levels deep under an employee?
Here is the current structure:
CREATE TABLE [dbo].[Employees](
[NodeId] [hierarchyid] NOT NULL,
[EmployeeId] [int] IDENTITY(1,1) NOT NULL,
[FirstName] [varchar](120) NULL,
[MiddleInitial] [...
Consider this table: c_const
code | nvalue
--------------
1 | 10000
2 | 20000
and another table t_anytable
rec_id | s_id | n_code
---------------------
2 | x | 1
The goal is to have s_id be a computed column, based on this formula:
rec_id*(select nvalue from c_const where code=ncode)
This produc...
Hi All,
I have been trying to access SSRS Web Service URL
hxxp://myServer:80/ReportServer (from Reporting Service Configuration Manager), but my IE always shows "rsAccessDenied" message saying that my account doesn't have privilage required to view.
Here are my system specs.
Its my laptop with
Windows 7 x64,
and SQL Server 2008 with S...
I'm writing a banking system and my customer wants support both Russian and American numeric standards in decimal digits delimiter. Respectively . and ,.
Now only , works properly. Perhaps because of web server's OS format (Russian is set).
String like 2000.00 throws a FormatException:
Input string was not in a correct format.
H...
I have a piece of cdosys code which runs correctly and generates e-mail with my SQL Server 2008 server talking to a MS Exchange 2003 Server. However the from name is not appearing on the e-mails when they arrive. Is there a fault in the code is it not possible this way?
Thanks in advance
usp_send_cdosysmail
@from varchar(500),
@to text...
I'd like to automatically generate an update script each time a value is modified in my database. In other words, if a stored procedure, or a query, or whatever updates column a with value b in table c (which as a pk column (i,j...k), I want to generate this :
update c set a=b where i=... and j=... and k=...
and store it somewhere (fo...
I am working with a big table (~100.000.000 rows) in SQL Server 2008. Frequently, I need to add and remove batches of ~30.000.000 rows to and from this table. Currently, before loading a large batch into the table, I disable indexes, I insert the data, then I rebuild the index. I have measured this to be the fastest approach.
Since rece...
Hello,
SQL is not one of my strong suits. I have a SQL Server 2008 database. This database has a stored procedure that takes in eight int parameters. For the sake of keeping this question focused, I will use one of these parameters for reference:
@isActive int
Each of these int parameters will be -1, 0, or 1. -1 means "Unknown" or "D...
hi
i can't install sql-server 2008 on Windows Server 2003 standard edition SP1
i get this error: Minimum Operation System Version Failed
thank's in advance
...
I thought "after delete" meant that the trigger is not fired until after the delete has already taken place, but here is my situation...
I made 3, nearly identical SQL CLR after delete triggers in C#, which worked beautifully for about a month. Suddenly, one of the three stopped working while an automated delete tool was run on it.
By ...
[I have no idea if stackoverflow really is right right place for this, but don't know how many devs on here run into msi issues with SQL Server; suggest SuperUser or ServerFault if folk think it's better on either of those]
About a year ago, when we were looking at moving our codebase forward and migrating to SQL Server 2008, I pulled d...
Hi SSIS Geniuses,
I Have an SSIS package in SQL Server 2005 that takes data from a flat file and puts it in a table in SQL Server 2005. Now I want it to send it to an additional location along with the 2005 location. This new table is in SQL Server 2008. Can it be done without porting my SSIS package to SQL Server 2008?
Thank you for yo...
Assume I connect to SQL server 2008 via SQL Server Management Studio ( SSMS ) and open new window W1 by clicking on New Query tab and write the following inside W1:
BEGIN TRANSACTION;
If I execute this statement 5 times, and then write (inside W1)
SELECT @@TRANCOUNT;
, then the value returned will be 5. But if I open another window...
I am using SQL Server 2008. I have a Student table in which there are following fields:
1. StudentId, 2. StudentName, 3. Marks .
I want to get a resultset in which there should be a column named “Position”. Something like “Select StudentId,StudentName,Marks, as Position from Student...” so that, depending on the marks a student scored, i...
I know that I can't get a specific answer to my question, but I would like to know if I can find the tools to get to my answer.
Ok we have a Sql Server 2008 database that for the last 4 days has had moments where for 5-20 minutes becomes unresponsive for specific queries.
e.g. The following queries run in different query windows simul...
Hi, I am trying to create a trigger for a cinema database.
I need it to update once a rating is added for a movie showing the text "rating added". The table name is
movie_ratings
the primary key is = movie_rating
I am not really sure how to do it, I have looked online but still are not too sure. I was wondering if anyone could help.
...
Hi
I have to set Account Lockout Threshold to some specific value. How can i do this? I have googled and not able to find the exact solution how to do it.
Whether SQL server account uses default Windows threshold to lock the sql account?
Thanks in advance...
Santhosha
...
Running the following simple query in SSMS:
UPDATE tblEntityAddress
SET strPostCode= REPLACE(strPostCode,' ','')
The update to the data (at least in memory) is complete in under a minute. I verified this by performing another query with transaction isolation level read uncommitted. The update query, however, continues to run for anot...
I want to pass a table as a parameter to a stored procedure. Is it possible to do it.
Please give some example.
...