Microsoft's SQL Server is a relational database management system (RDBMS) that runs as a server providing multi-user access to a number of databases. It originated from the Sybase SQL Server codebase, which is why both products use the extension of SQL called Transact-SQL (T-SQL).

learn more… | top users | synonyms (2)

1
vote
0answers
18 views

Clear sql database but dont drop it

Hi Database administrators, i'm working on a school project where i got a SQL server with a database for my team. I already imported a local database witch was created with the Entity framework by ...
0
votes
1answer
18 views

Database management tool for compact edition (.sdf) database

What is the best database management tool for remotely managing a compact edition (.sdf) database created in WebMatrix?
0
votes
2answers
31 views

SQL Server: Change drive letter (which contains system dbs)

Is it possible to change driver letter for a volume which holds only system databases safely? What precautions should be taken and how should it be done (I know I can just go to computer management > ...
1
vote
1answer
33 views

Data Migration from Oracle to SQL Server [duplicate]

If you need to do a data migration from an Oracle database to SQL server, what approaches and technical solutions are the best practice? Our database has about 100 million rows and a total of 52 ...
-4
votes
0answers
32 views

How do I create rows of test data in each table? [closed]

I am currently working on an assignment. Part of the assignment states "create a minimum of 15 rows of test data in each table and create at least 3 queries that joins two tables and returnes values ...
2
votes
2answers
35 views

Table restraints to limit value insertions based off of other values in a row

Using SQL Server 2008 R2 Is it possible to limit what values are allowed in a coulumn based off of other values in the row. Ex: myTable: ID, Test_mode, Active 1 , 1 , Null 2 , 0 , 1 ...
1
vote
0answers
41 views

Re enable Windows Authentication [closed]

My old employee has disabled Windows Authentication in our server. Now I'm not able to access the SQL Server even though I have Administrator access to the server. I need to reset the sa password.
4
votes
2answers
83 views

Re enable Windows Authetication in SQL Server

My old employee has disabled Windows Authentication in our server. Now I'm not able to access the SQL Server even though I have Administrator access to the server. I need to reset the sa password. I ...
0
votes
2answers
43 views

Can't use SQL Server database on a networkpath

I am working on a project for a very long time now. It's a .NET application which works with a SQL Server database (.mdf, LINQ to SQL). Now I am almost finished and wanted to run some tests. But ...
0
votes
1answer
41 views

Copy tables from a stand-by database

I want to explain the following. I have a database that is a recovery db from our main environment. This database is kept up-to-date through log shipping. However, I want to copy all tables from this ...
2
votes
0answers
29 views

SQL Service Broker stops working

I'm new in using service broker. Our existing service broker suddenly stops working and I can't figure out why. When I try to enable service broker (which is already enabled) I get this in SQL error ...
0
votes
1answer
36 views

convert(varchar, getdate(), 112) or convert(varchar(8), getdate(), 112)

Which sql command is recommended to convert a date to yyyymmdd? 1) convert(varchar(8), getdate(), 112) or 2) convert(varchar, getdate(), 112) I notice that if I used I use the 2nd one, it seems ...
1
vote
1answer
40 views

SQL Server getting the 2nd and 3rd occurence or getting the 3rd value between two symbol in a string

I have the following table: ========================================================== | Name_Level_Class_Section | Phone Num | ...
4
votes
3answers
44 views

How to reduce network latency during mirroring?

We are using SQL Server 2008 R2 Standard edition for mirroring. But we found out that network latency is too high. It takes nearly four times time to complete a transaction while mirroring is active. ...
-3
votes
1answer
19 views

Microsoft Assessment and Planning Toolkit for Windows server 2003 [closed]

Can anyone please tell me where I can find Microsoft Assessment and Planning Toolkit for Windows server 2003? I tried using version 8.0 but it fails to install on Windows server 2003. thanks
2
votes
2answers
68 views

Is there a fast way to change column type without dropping the clustered index?

I have a large table that is clustered index on a bigint. We would like to change it to just an int to reduce the space and improve the performance. However, dropping the clustered index and recreate ...
2
votes
0answers
26 views

How to remove leaf member values?

I have a dimension hierarchy that is related to multiple fact tables with different granularities. In the case of one fact table, it relates to the middle level of a three level hierarchy. When you ...
4
votes
1answer
84 views

CTE memory space

How do CTE memory space work? When you have complex SQL statements executing with the CTE and you get unusually large result set, can it increase the logical reads of the query? I have a CTE that is ...
2
votes
1answer
26 views

Full text catalog

I am using SQL Server 2008 R2. I need to find when and which user created full text catalog. also, who added/modified/deleted the fields(that were full text index) in that full text catalog.
9
votes
2answers
185 views

How to avoid using variables in WHERE clause

Given a (simplified) stored procedure such as this: CREATE PROCEDURE WeeklyProc(@endDate DATE) AS BEGIN DECLARE @startDate DATE = DATEADD(DAY, -6, @endDate) SELECT -- Stuff FROM Sale ...
-1
votes
1answer
49 views

Single quote issue

I have to update a column where I am giving query which is Update Table Set col = '[189] IS NOT NULL and [189] <> ''' Where colid= 198 But it's giving output:- [189] IS NOT NULL and ...
0
votes
1answer
36 views

Autogrowth of SQL Server database and log file

I am confused what this autogrowth property does for any database or log file in SQL Server. According to my understanding If we set autgrowth for database as restricted then its size will ...
-1
votes
3answers
67 views

How to restore SQL Server 2008 R2 backup to SQL Server 2008 [duplicate]

I am unable to restore a backup from a 64-bit instance onto a 32-bit instance. Source Server: Microsoft SQL Server 2008 R2 (SP1) - 10.50.2500.0 (X64) Destination server: Microsoft SQL Server ...
2
votes
0answers
38 views

The Login is from an untrusted domain - domain setup with computer level login

I have a Sql Server 2008 R2 database I'm attempting to connect to using ADO.NET using integrated security in the connection string. The database resides on a 64 bit Windows Server 2003 machine. The ...
-1
votes
1answer
35 views

SQL Server does not exist or access denied [closed]

Anybody can assist on how to resolve this kind of error? I have already checked the windows firewall in the server but still fails to connect. I have also tried to do TELNET and fails to connect also. ...
3
votes
2answers
51 views

Table partitioning filegroup

Can I use the same filegroup for multiple tables when partitioning a table? I partitioned a items table by year. It created five filegroups. Can I use the same file group for orders table or will I ...
0
votes
1answer
48 views

Can I use the database and query it while full-text indexing?

I need to index my database, but I need to query it while it is indexing, it may take a long time, can I do that?
0
votes
2answers
48 views

Running the following query within a scheduled job

I am looking at running the following query within a scheduled job weekly: Select TOP 10 s.database_name, m.physical_device_name, CAST(DATEDIFF(second, ...
2
votes
1answer
34 views

BULK INSERT Data from file but ignore the first occurence of field terminator

I have a file that has data arranged in the following style: 1 1 0.5102 0.4898 0.0000 0.0000 0.0000 1 2 0.3114 0.6886 0.0000 0.0000 0.0000 I need to load ...
1
vote
1answer
64 views

SQL Server clustered index high fragmentation

I've got a Table with an Integer (4bytes) as primary key. it's defined as an identity. it is also the clustered index. Inserts are working perfectly fine. After inserting 2000 rows the fragmentation ...
2
votes
2answers
64 views

How to rollback the identity seed after deadlock

Now that's an approximate sequence of operations Im performing: SET IDENTITY_INSERT <table-name> ON; INSERT SOMETHING to <table-name> with explicitly specifyed id DECLARE @oldID bigint ...
4
votes
1answer
38 views

Recommendations on how to organize Queues in Service Broker

I have a service broker application that currently has 5 or 6 queues on two servers. The general workflow is: Server A User populates some tables User fires stored proc which puts a message into ...
2
votes
1answer
101 views

sa password changes automatically, a while after I set it blank?

I have installed SQL Server 2008 R2 on a windows 2008 server. I need to set 'sa' password to blank for some reasons to make an application works. but the password changes automatically some hours ...
2
votes
3answers
50 views

Auditing specific database events in SQL Server

For auditing purposes, we have a requirement in which we have to enable Auditing for theses events: DBA Logins Changes made by DBAs LIKE INSERT, DELETE, UPDATE, ALTER (etc.) Changes made by our ...
0
votes
1answer
46 views

CREATE DATABASE permission denied in database 'master'

I've developed a desktop application using WPF and Entity Framework code-first. In my application the user can create multiple databases at run-time. But Entity Framework can't create database if ...
-1
votes
2answers
38 views

error in sql server 2008 r2 installation

When I install sql server 2008 R2 , I fail in a step and get the message Previous release of Microsoft Visual Studio 2008 -- Failed And I can't go to the next step , How can I solve it ?
2
votes
1answer
59 views

excessive CPU utilization by SQL server

I have an issue with SQL server 2000. Its CPU utilization is high from 9.00 AM to 5.00 PM. Three applications use this server through three different instances but when the CPU utilization is high one ...
1
vote
3answers
65 views

Improve performance by partitioning

I'm using SQL Server 2012. I’m using CTE to create an orders table from the items table. The final count for the orders table is around 120 million. It is taking about 2 hours for the whole process. ...
1
vote
2answers
72 views

SQL Server 2012 - Missing or lost transaction and no errors to show what went wrong

I have 2 missing records in SQL server and I am trying to identify the problem that caused this issue. New records are inserted using a Stored Procedure, which will return an error code to the ...
-2
votes
3answers
59 views

Left Join not giving desired result

I have two Datasets FEES PAYMENTS CrsCode InstNo FEE Regno CRSCODE Instno Payment CA1 -2 100 R1 CA1 -2 100 CA1 -1 200 ...
-1
votes
0answers
28 views

Using If statements in stored procedure breaks it [migrated]

This is my stored procedure: USE [Hires_new] GO /****** Object: StoredProcedure [dbo].[ps_selectNewHireWorkPeriodsSQL] Script Date: 05/14/2013 12:59:28 ******/ SET ANSI_NULLS ON GO SET ...
-2
votes
1answer
22 views

Adding Roles in SQL SERVER 2012 failover clustering [closed]

Is the Application Role required for SQL Server failover cluster
0
votes
0answers
20 views

How to merge a select statement with a calculated value as new columns? [migrated]

In my sql server code, I have this select statement select distinct a.HireLastName, a.HireFirstName, a.HireID, a.Position_ID, a.BarNumber, a.Archived, ...
0
votes
0answers
40 views

How to loop through a select statement? [migrated]

I have this select statement declare @t table (Percentage float) DECLARE @acc INT SET @acc = 1 DECLARE @max INT select @max = max(HireID) from NewHire WHILE (@acc <= @max) BEGIN IF ...
-1
votes
2answers
52 views

How to do division from select statements in sql server?

I am trying to create a select statement that can return a table of 1 column. Basically, I am looping through all the records of NewHire, and then using its id, to select stuff from another table. I ...
2
votes
1answer
58 views

Reorganize full text catalog is offline or online?

I need to schedule a Full Text Search Maintenance and I was reading this link: http://msdn.microsoft.com/en-us/library/ms176095.aspx. Reading this documentation I am supposing that I need to ...
3
votes
3answers
83 views

Fixed length text file insert into SQL table

I am not a DBA on this one and I will not have access to BCP or anything like that. So I'm wondering if there is still a way to do it in SQL keeping it very basic. I have 100's of text files that ...
2
votes
1answer
73 views

Check programmatically if SQL Server needs restarting

I have to check programmatically if the SQL Server service needs restarting after series of changes in configuration. Is there any indicator (e.g. in the system registry) that allows to obtain this ...
2
votes
0answers
28 views

Batch mode in SQL Server

I want to try the column store index in SQL Server and im trying to get my queries to run in batch mode, i rewrote my query this way( it had an outer join before) but the execution plan still show ...
0
votes
0answers
50 views

Transfer tables from multiple servers into one single server [duplicate]

I have to migrate similar tables present in multiple different servers (30+) into our new server using SSIS package. What would be the right approach towards this? I was successfully able to transfer ...

1 2 3 4 5 83