Insert statement conflicting with Foreign Key Constraint
So after designing the database structure and then inputting the values, I have had two error messages like the title says when I executed the query. I was staring at my screen for a good hour and I'm...
View ArticleDisable non-essential services on MSSQL server
Hi, as per my System Admin team they are asking to disable below services from MSSQL server if not essential: (This SQL server is in SharePoint farm)DHCP Client Distributed Transaction Coordinator...
View ArticleSQL server 2005 getting hung after running querry
hi,i have windows 2003 server & sql 2005 installed on that. whenever i run any querry my server is getting hang. i m not able to do any task on that server. i have to restart hard boot that server....
View ArticleCopy SQL database tables to another SQL server
I am all new to SQL Server, and I am struggling to find a way to copy some tables (not all) from one database to another (on different SQL Server).I’ve searched for ‘copy’ option in SSMS itself, but...
View Articleconnecting to Godaddy server database
I have already created a database with a name of "mcastudent" located at 182.50.133.151 in Godadday's server while creating this database i also check the "Direct Acess" option as true I want to know...
View ArticleShortest Distance Between Locations in a Table
So I have a table with 12 records (it's a college assignment). Each record has the name of the location, and four other columns: UTMNorthing Co-Ordinates, UTMEasting Co-Ordinates, Latitude, and...
View ArticleUnable to create data link to SQL Server 2008 R2 instance
Hello, I'm running Windows 7 Professional x64. I just installed SQL Server 2008 R2 (32-bit) and created an local instance (named "MY-PC-2\SQLEXPRESS"), and then created a new database. In SQL Server...
View ArticleDynamic sql is not working in restore database version 2008
Friends...Os: win2k3DB: sql server 2008I am planning to restore the latest backup set from production to test db. i have to get the max position from the restore headeronly command to a variable and...
View ArticleInstallation of SQL Management Studio failes with error 1603 on rebuilding...
Hi @all,first of all: I don't have a question but want to share my answer and as I didn't find a post that 100% fits my problem I started a new thread here. Hope that is OK.Here is (was) my problem: I...
View ArticleSQL server 2008 Bypass "table not found" error message
I'm running a query from a server that is linked to another server using cursor. I'm using a list of counties from a different database table, then using that list to interrogate other database tables....
View ArticleSQL: how to loop through data table in store procedure?
We need to create a store procedure which needs to go through a table which include ItemIDs and get each ItemID and run some query base on ItemID.We know we can use "cursor" to fetch each ItemID.We...
View ArticleRead any physical file (.xls , .xlsx, tiff, pdf, txt ...etc ) and write in to...
Hi,I have lot of files in the directory is filling lot of space in the directory. So we are planning to move those files to sql table as content.Ex: file path : \\server\foldername\file.doc. Can you...
View Articleexecuting stored proc in view
HiI have a stored procedure which returns 2 variables(int and varchar). I would like exec the stored procedure in select statement while creating the view. Is it possible to exec the stored proc in...
View ArticleFetch data from multiple rows
Hi,I am passing in put @z to the stored procedure like belowInput parameter :Declare @z varchar(50)SET @z = 1Table data :x y z 12 test 5,2,3,4 1 test1 1,7I want to pass the @z...
View ArticleInserting all rows of data from a specific column in one table to a column in...
Hello All, I am trying to insert all rows' worth of data from a column (called "Latitude") in one table ("Data") to another column ("LAT") in a new table ("TEST"). When I ran my code (below), the query...
View ArticleError pointing to SQL but SQL not found?
Hello,I am getting the error:Event Type: Information Event Source: ESENT Event Category: ShadowCopy Event ID: 2001 Date: 11/13/2013 Time: 10:24:22 PM User: N/A Computer: VRPCPMTS1 Description: lserver...
View Articlelooking for a hosting
Hi all:I use several User defined table type for passing table values to some stored proceduresI also use TVF I have 3 databases. I call 1 of them as databasename.dbo.tableDo u know a hosting that...
View ArticleDB owner permission
Hi,I have around 1000 databases, I need to give db_owner permission to all databases, How to give it without logging into each db. I need short method that should apply for all db's
View ArticleLinked Server Error when Stored Procedure runs but direct query works ????
Morning all,I have a linked server that has been in use and worked fine.Last weekend, we did a migration to a faster server, and it was requested that I use a DNS name for the server.So instead of...
View ArticleWhat is the creation date of ndf file?
I want to know on my databases when the ndf files has created?Thanks
View Article