Quantcast
Channel: Getting started with SQL Server forum
Browsing all 9243 articles
Browse latest View live

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 Article


executing 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 Article


Dynamic 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 Article

SQL 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 Article

Read 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 Article


Fetch 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 Article

Inserting 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 Article

Image may be NSFW.
Clik here to view.

Error 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 Article


looking 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 Article


DB 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 Article

Design 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 Article

Linked 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 Article

What is the creation date of ndf file?

I want to know  on my databases when the ndf files has created?Thanks

View Article


2 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 Article

When 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 Article


Distinct 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 Article

Possible 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 Article


Windows 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 Article

Image may be NSFW.
Clik here to view.

mssqlserver 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 Article

SQL 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
Browsing all 9243 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>