Quantcast
Channel: Forum Getting started with SQL Server
Browsing all 4729 articles
Browse latest View live

regarding sqlserver

Hi,  I have 10 tables in a database and having indexeshow can i drop all indexs in database

View Article


importance of OUTPUT in Stored procedure

 can   anyone tell me the importance of OUTPUT parameter in stored procedure.and even call our difference between return and  OUTPUT in SP.Thanks

View Article


DateTime Value NULL or Not

How to write a query whether a date value is NULL ?I want to check is expiry date is NULL or not .eg, select t_cpls as sales_price_list,t_item as item,t_stdt as effective_date,t_tdat as expiry_date,...

View Article

MS SQL link being reset, Please help!

Hi, I am beginning to feel lost and I need some help because I need to fix this problem I've been having at work. Basically, I have been having issues with my network drives, seems like after a...

View Article

regarding sqlserver

Hi,  I have a table with identity column have 100 rowsin that five rows are deletedhow can i find which rows are deleted 

View Article


Reseting Auto-Increment

Let's say I have already a table with PRODUCT_ID field as auto increment and primary key:PRODUCT_IDPRODUCT 1ball 2car 4pen 5ruller 10rubberNow without deleting my rows, how can I reset my PRODUCT_ID...

View Article

The usage of Ident_current

Hi,I have a question on this Ident_Current. I am getting duplicates when the code below is run (example):DECLARE @s_RatingSessionNo nvarchar(30);SET @d_CurrentSystemTime = CS.F_GetSystemDateTime();SET...

View Article

back up & restore

Hi,I am trying to restore the same .mdf and .ldf files into the newly created database.But its giving me an error that its already in use and I cannot complete my task.Is it possible to do the same??...

View Article


How to run queries on 47 SQL Servers

I have to run following queries on 47 SQL Servers, how can I run them on so many servers?Thank you.=========================================================================Courtesy of Ashwin...

View Article


Is it advisable or practical to run SQL Agent with Account from another domain?

A SQL Server in domain A needs to mount databases downloaded on a weekly basis to a second SQL Server, in domain B.Right now, the two domains, which were deliberately separated for security, have no...

View Article

Duration of restore time.

Hi All,How to find out the "how much time my database is taking to restore" as i could see my database is restoring from Friday.In short "How to find since how long my database is taking to...

View Article

Conversion failed when converting the varchar

This line returns the above error. The value in the database is an in, but I am putting it into a text label, (hours), so why does it fail?   The value of multi  (1 or 0) determines whether you divide...

View Article

Regarding OUTER JOIN

I'm reading a SQL Server book.I don't understand LEFT OUTER JOIN and RIGHT OUTER JOIN.According to this book, LEFT OUTER JOIN is illustrated like following.A LEFT OUTER JOIN will preserve all of the...

View Article


Error: 1204

Hi Team,How to resolve thisThe SQL Server cannot obtain a LOCK resource at this time. Rerun your statement when there are fewer active users or ask the system administrator to check the SQL Server lock...

View Article

Who is the default owner of a table?

Assuming  a table is created as dbo.Customers, who owns this table?Who is the owner of the dbo schema - and isn't he the owner of the table?And what if it's a different schema, a table created as...

View Article


Web Edition Download link

I want to download sql server 2008 r2 webedition on my system but couldn't find any desired link for same.Will appreciate if anyone can provide the linkHS

View Article

SQL Server FileStream Shared location

I unexpected delete SQL File Stream Shared location, is there a way to restore the Shared location. When i try to open SQL File table from SSMS Explore File Table Directory it works on Server, but it...

View Article


How to insert multiple records with a single query?

Hi,I've to save a huge number of installments with their other information such as due on blah blah. Now, I want to add the all of these information at once with a single insert query.How can I do that?

View Article

DB-Library BCP issue with SQL Server 2014

Hello,My application uses DB-Library (ntwdblib.dll) to communicate with SQL Server 2014. We are having issues calling bcp related functions like bcp_init which always returns FAIL status. Our...

View Article

DateTime is stored as an int. How to convert to datetime format??

According to the database, StartTime is stored as int: 471895438When Viewed in the software it comes out like this: 9/29/2010 10:05:26 AMAny ideas on how to convert this using sql?-Tim

View Article
Browsing all 4729 articles
Browse latest View live


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