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

update a column in db without using an identity column

Hi guysI cant get my head round this. I want to update a table without using identity column. I can run with identity column which is not a problem but I want to do it without identity column . Please...

View Article


error importing excel 2007 data into sql 2012

hi everyone,I am working with openrowset function to import excel data in to my sql table but it gives error as Sql 2012 is 64 bit andI have downloaded acessdatabaseengine_x64.exe to import data with...

View Article


Inplace upgrade from SQL Server 2012 Dev to SQL Server 2016 Dev

Hi All, I have an environment which has SQL Server 2012 and it has 2012,2008 and 2005 compatibility Databases. Now we want to upgrade the SQL Server 2012 to SQL Server 2016. Please let me know...

View Article

Restrict Backup

I have restored a backup of a database to another server.  I want to make this restored database to be readonly and prohibit users from making a backup.My experience level is slightly above novice.  I...

View Article

SQLExpress 2014 and SQLserver 2014 database in the same PC

Hi My company applied MSDN subscription   mean while i downloaded SQLExpress2014  .  Can I install SQL server 2014  in the same machine. ? I would like to keep SqlExpress and SQLSERVER 2014 in the same...

View Article


Trying to Join two temp tables

Hi there, I have the following query that executes 2 stored procs and creates 2 seperate temp tables: #temptable3 & #temptot.What I'd like to do is do a Cross Join of #temptable3 to #temptot by...

View Article

Case Statement

Hi,How would I write the following logic please out please? This is the SQL code from Access but not sure how to convert it into the correct syntax. If([R Band]="Bespoke",[B Mentions], If([R...

View Article

why new created stored procedures, or the likes, underlined red

Hi all,It's been a while in SQL Sever 2014. After I create a stored procedure or a function successfully, they seem not be accepted visually and got alienated by a red underline. it is an...

View Article


How to structure the query?

Hi,The output of my query is like this -<style><!--table {mso-displayed-decimal-separator:"\."; mso-displayed-thousand-separator:"\,";} @page {margin:.75in .7in .75in .7in;...

View Article


SQL 2014 EXTRACTION FAILED

I am useing windoes 7 with sp1 64 BIT, 5GB ram,i already in stalled 2012 edition but when iam trying to install 2014 edition the message is EXTRACTION FAILED, i download thatfile  many times to install...

View Article

Stored Procedure using WITH

I am a novice SQL querier, but I can do a little and I understand concepts. I am trying to edit a Stored Procedure our old IT Manager had written, but am not sure how the WITH statement is used. Here...

View Article

syntax error

Hi All,I am running a the below query (mocked the table and field name)SELECT *     from table     ORDER BY PayAmount desc WHERE rownum <= 5;I am getting the below error Msg 156, Level 15, State 1,...

View Article

Snapshot backup in on premise SQL Server?

Hi Experts,Do we have any functionality to take snapshot backups in SQL Server for on-premise editions such as ENT, STD?We are currently using SQL Server 2017 STD edition. aa

View Article


Not able to create excel and email out

I have issue with creating excel file and email out using store procedure. I can able to pull the data using script but not able to create excel and email. Can someone take a look?  CREATE TABLE...

View Article

SQL server agent job , can I run it on a schedule under a SQL user

I seem to need to make credentials and those need to be windows credentials , is there anyway i can run this sqlserver agent job under a SQL account?

View Article


SQL Server Management studio Not opening

Hi , I tried to install SQLEXPRWT_x64_ENU  and it got installed with all the green options at the finish. So when I try to double click on it  SQL Server Management studio icon, i am getting only the...

View Article

After in place upgradation of OS from Win2008 r2 to Win2016 Std, unable to...

Details:I had a Hyper-v VM with "Windows server 2008 R2" and "SQL server 2008 R2".Now after in place upgrade from Windows server 2008 R2 to Windows server 2016. I have tried to run "SQL Server...

View Article


Image may be NSFW.
Clik here to view.

BULK INSERT WITH '0x0A'

Hi Team,I've 4 columns in my database table, whereas 10 columns in my .csv file.I want to upload first 4 columns of .csv file only in db table.ROWTERMINATOR is '0x0A' and FIELDTERMINATOR IS ','I've...

View Article

SQL User CALs for 2nd SQL Server

Hi, Would like to know, if i have 1 SQL server 2012, and 1 SQL Server 2014 with 65 SQL User CALs 2014.Do i need to purchase another 65 user CALs or my existing 65 license can be used for both?Thank you.

View Article

Northwind database SQL Task

Hi, Can anyone please tell me how to get the Number of Orders per territory from the Northwind database??I have tried it, but I could not get the count for each territory because One employee ID is...

View Article
Browsing all 4729 articles
Browse latest View live


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