SQL: 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 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 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 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 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 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 ArticleDesign DB from multiple DB's ?
Hi, I have 9 databases and each database contain table has files table might have more than 10 GB. So 10GB * 9 = 90 GB is possible.Set 1) These are 3 sql databases [ TM, TMAsia ,TM1PC ] contains 3...
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 Article2 questions to get starting to become database administrator
hi,I like to know which dabase program is most in use is that oracle or sql ?and which certification is the best for a young man of 27 years ? johanh.david
View ArticleWhen does the SQL login password is lastly updated?
Hi All,Is there any script or process to check when the Sql login password is lastly updated?Grateful to your time and support. Regards,Kalyan----Learners Curiosity Never Ends----
View ArticleDistinct in one particular column
Hi Friends I am going to select orderid,date from one table but i want to display only distinct orderid and its corresponding date.THANKS IN ADVANCE
View ArticlePossible to check how much time an update statement on a table would take ?
Hello @allI have a table with a fragmented Index, the table has an actula "user_updates" from 226'699.How can i find out how much time an update on this table takes ?i would like to check if there is...
View ArticleWindows 7 CREATE DATABASE permission denied in database 'master'. (Microsoft...
HiI have migrated to a new computer using Windows 7, 6 gig memory, I7 chip (old machine had xp) and have installed Visual Studio 2008 and SQL Server 2008 R2. I get CREATE DATABASE permission denied in...
View Articlemssqlserver service not starting on server 2008 vista os
Hello everyone.I dont know how but i am not able to login to database in management studio.when I checked my mssqlserver service was stoped and is not starting but sqlexpress service starts.plz help my...
View ArticleSQL Server 2008 Service SIDs
Hello,I've recently installed SQL Server 2008 and when I look at the groups created, the Windows Domain accounts I specified for each service do not appear. Instead the service SID has been placed into...
View Article