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

How unexpected reboot of the server causes the Databases to go into suspect mode

Hi,Could some one explain me how unexpected reboot of the server causes the SQL server databases to go into suspect mode. I had a similar issue recently where i found that the server got rebooted...

View Article


SQL : Finding the missing 15 min time slot in 24 hours data

Hi Everyone,I am trying to find the missing 15 min slot between the hours and insert them if any slot it missing. could some one help me here please?I have a table as below.id, datetime,1,'2017-01-01...

View Article


The database is not accessible error from SSMS

I have a SQL 2008 R2 Server. It has several databases. When I login to the server through SSMS, one of the databases is shown as "Recovery Pending". When I try to expand the database, an error is shown...

View Article

Reporing server out op prod live data

i have always on setup on sql 2014with two databases ABC database is primary on first server and XYZdatabase is primary on second server.First node   ABC   PRimary               XYZ   Secondarysecond...

View Article

BULK INSERT query - any equivalent for updates and deletions?

Hi, I have used the BULK INSERT query to insert large amounts of data into SQL database tables.  Are there similar queries to update and delete large amounts of data?  Thanks.Michael Downing

View Article


BULK INSERT file does not exist error

When executing the following query:BULK INSERT [Database Table Name] FROM 'C:\Test01.bcp' WITH (FORMATFILE = 'C:\Test01.fmt');I get the following error:Cannot bulk load. The file "C:\Test01.fmt" does...

View Article

Trouble installing SQL Server 2016

Please Help! I keep getting this same error every time I try installing SQL Server 2016. If anyone can help point me towards a solution it would be very much appreciated!Overall summary:  Final result:...

View Article

An exception occurred while executing a Transact-SQL statement or batch....

First of all, I'm connecting to SQL 2005 database and everything that I use in MSSMS has been working fine.Just got the update notice for 17.3.  After updating, when I connect to the server I'm getting...

View Article


TdsParse Exception

Hello there,I am having a very strange issue using SQLClient library. We use dapper in our repository library to perform CRUD operations.Every now and then the insert command fails which the famous...

View Article


Image may be NSFW.
Clik here to view.

nvarchar(2) field type error

With the table fields as follows:This query executes fine:UPDATE [PROG AERO - TEST$Vendor] SET [UPS Zone] = 'X' WHERE [No_] = 'TV001'However this query:BULK INSERT [PROG AERO - TEST$Vendor] FROM...

View Article

la fonction substring requiert 3 argument(s)

i had execute this query in sql server management studio 2012 the result was ok , but when exécute it via other interface i had this error message : ODBC-ERROR / 3700 / MICROSOFT SQL SERVER native...

View Article

Manual control on SQLServer Memory Usage

Is it possible to1. Control the buffer pool minimum memory?2. Overall reserver memory on startup. Min memory does not reserve the memory upon startup. I am trying to find out if we can always reserve...

View Article

How to Backup last 4 months of data from SQL DB

I have database having 1 TB size, due to space issue, I do not want to take complete backup Can anyone advise me how to take full backup from last 4 month.

View Article


using tsql merge for incremental load

Using sql server 2008 R2 standard edition.I merged a table from source to target using the following merge sql. It updated existing records in the target, inserted new records and deleted the ones that...

View Article

How to Extract SQL Data to Excel Worksheet

How to Extract SQL Data to Excel Worksheet

View Article


SQL SERVER- Lookup a derived column in another table and return a value

I have a query which has a column (PROCESS) which was obtained using a concat function. Now i need to lookup this column in a column which is on another table (Table2) and then return a value from the...

View Article

Question on SQL Server Management Studio use

Dear All,Sorry this might be a basic question as I am a starter to SSMS. I have downloaded SSMS to learn and to practice, I don't have server or any connection to a server. Can I use SSMS on my PC with...

View Article


Aggregate a column based on a value in another column- sql

I have a query which gives me the count by company/contractor, but now i need to modify it to include rows that have a value "1" in another column.Query:Select         Date,         process,...

View Article

Executing Scripts From a folder and sub folders

Hi All,I have a folder which has subfolders name like 1 and 2 all numbers all folders have some SQL scripts files I want to execute all scripts in incremental folder name like first execute folder 1...

View Article

Huge Blocking ocuring in Aspstate database.

Dear All,I am facing Blocking issue in Aspstate database ,due to that server cpu usage is very high.we are deleting expired session through agent job.but still facing this issue.kindly help me to...

View Article
Browsing all 4729 articles
Browse latest View live


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