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

How to generate row_number for more than the no of records in the order by...

Hi All,I have a query which contains Order quantity, order date and Row_number as Id. The below code produces 15 records as well as row_number for those 15 records. But I need row number for the next...

View Article


SQL Server 2014 Standard Product Usage Rights question

My question is related to the definition of “device” as this term is used in the PUR for SQL Server 2014 Standard. We are currently using per-core licensing but would like to find out if Server+CAL...

View Article


SQL server 2014 express with advanced features

Dear All,i am migrating from SQL server 2008 r2 enterprize edition to 2014 express with advanced service..Please, guide me what will be consideration points ..Regarding Reporting Services ..also TSQL...

View Article

Using EXCEPT and INTERSECT (Transact-SQL) with a Twist

I understand how to use EXCEPT and INTERSECT BUT how Do use it with two different servers?  I have the production database on server1, the conversion database on server2. The databases are identical...

View Article

When STATS_DATE returns NULL and DBCC SHOW_STATISTICS shows no data

I've come across an issue where large numbers of statistics (some user created, some auto created) in a database have no Updated value when using the SHOW_STATS system function, but do exist when I...

View Article


Configuring SQL 2014 Express for TCP/IP remote access

Hi I have installed SQL Server 2014 Express on Windows 2008 Server. I have enabled TCP/IP, removed the dynamic port and added fixed port 1433 to TCP/IP properties, added port 1433 to Windows Firewall...

View Article

Enable remote debug t-sql in sqlserver

HiI need to run the debug to a store procedure in sqlserver, but from remote server (database server), if the database is local not problem, but if the database is in other server throw an error of...

View Article

Error in writing condition in a query

Hi following is a working codedeclare @dte as datetime='2015-04-01' declare @StDt as Datetime = DATEADD(mm,DATEDIFF(mm,0,@dte), 0) declare @EnDt as datetime = DATEADD( DD, -1,...

View Article


Combine two row in sql

Hello Guys,Is it possible to create this kinda output.Input:Table1Column1Column1A2B3C4DTable2ABCD0100101001110101Output:BACBCDBD Actually i want to Combine two different table column deepen where 1...

View Article


Database objects are reverting to previous version randomly - unable to track...

Hi,In one of my database some objects are reverting to previous version (only some.. not DB restore). I have checked backup and restore logs for this DB. It is not DB restore.I have created database...

View Article

Closed Sockets?

I'm trying to transfer data from one table on a DB to another using an application but I keep getting the below error. Is this SQL related or is it down to the application? Does anyone know how to...

View Article

Ram utilization very high for SQL Server

Ram utilization very high for SQL Server

View Article

Upgrade to SQL Server 2008 R2 fails

I'm trying to upgrade from SQL Server 2008 Express to SQL Server 2008 R2 Enterprise. The installation is failing. I get two log files. The first appears to be a summary. The second is an MSI install...

View Article


How to remove a table from Replication

Version: SQL 2008 R2Problem: I have a user who wants to remove table, but when she tries to remove it ( drop the table), she gets an error:===========================================================MSG...

View Article

Installing and configuring SQL server 2012 network options

Hello I'm hoping someone here can help as i'm investigating deploying always on availability groups.I have two out standing questions.what network protocol is used for the Availability group...

View Article


dynamic management objects....

hi,         I have encountered a doubt while I was reading about dynamic management objects.how would we relate these objects into practical usage. select *from sys.dm_os_schedulers; select *from...

View Article

how to truncate all the tables of my database

hi guys I am using SQL Server 2012 , i need to delete all  the data present in my database .I mean i want to truncate all the tables in my database , so please suggest me the easiest way .

View Article


Order by in SQL Server

I have data in table as below.My requirement is -->result should come in descending menu order i.e highest menu order should come first and if two records have same Menu order then the highest...

View Article

sql server installation problem

I'm experiencing difficulties installing sql server on my laptop. I always get "compactibility" related issues

View Article

Fetch Table name and field name from a given entry

Hi ,i know the entry which is present in the database .But i don't know the table name and field name which has that entry .i have to fetch the table name and field name from a given entry .Can anyone...

View Article
Browsing all 4729 articles
Browse latest View live


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