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

how to start sql

I'm new to sql. The info I've seen says to go to All Programs, point to Microsoft SQL Server 2008 R2, and then clickSQL Server Management Studio. Although we have SQL Server 2005 Compact Edition,...

View Article


Renaming Multiple files

Hi Gurus,A little different question. I have files in a folder and I want to rename the files. Actually I want to remove some special characters like '&' from the name.How can I do that?so like...

View Article


BugCheck Dump

please review if this stack dump is a concern or if it's a one time non-critical event.  If it's a concern, please provide any recommendations....

View Article

How to get the Database name from the backup file

Re: How to get the Database name from the backup file(This is not the exact scenario. Using for simplicity.)I have a directory of .bak files created from SQL Server1. I want to restore them to SQL...

View Article

Substring function

Hi gurus,I have a table holding IDs in one column and a string in the second column like below.COLUMN01       COLUMN021                      abc"11444,12,13"efg"14,15"hij"16,17,18,19"opqr2...

View Article


Attaching an Auto Incrementer to an existing table

Hi!Have a few tables orders of records of which I need not to change and add an auto-increment sort of additional field to help in sort and manipulate the same. Any idea how to achieve the same???Thanx...

View Article

SQL Syntax To Import A Named Range From Excel

Hi,For SQL Server 2012+ what could be an appropriate SQL Syntax for importing anamed rangeof an Excel in aNew Table.For example consider Excel 2013 file asC:\abc\xyz.xlsxNamed Range in the said file as...

View Article

Why is the SQL job failing on weekends while it successfully runs in weekdays?

I wrote a job to create a backup. But this seems to work fine in weekdays. After weekends I can't find any backups. History viewer shows only 1 day of history and therefore I can't see what happened to...

View Article


Sql Server LinkedServer & run query against linked server with windows...

HiI have  two Sql Server located in two different domain, in the domain A , users are connected to sql server by windows authentication mechanism. I have created a linked server to my server2 located...

View Article


Find the largest salary of a specific department

Hi all,How to i find out the largest salary in a specific department (say accounts)

View Article

regarding sqlserver

Hi,how to write a t-sql code to print sum of first 10 numbers

View Article

License required for 2-node failover cluster at Primary site and Secondary site

Hi,I understand from various source that passive server in SQL Server 2008 R2 clustering is not required to be licensed as far as its not used for any query.I would like to understand the licensing for...

View Article

Support for Microsoft SQL Server 2008 R2

Hi All,Our company is planning to buy Microsoft SQL Server 2008 R2. Is the Product still supported from Microsoft. It is not mandatory for our requirement, we can still go to SQL Server 2012. But, just...

View Article


Stored Procedure

Hi,I am working on a stored procedure which moves a file from a folder to another.I am able to move one file, but that is not what I want.The stored procedure that I want is which "moves ANY file...

View Article

Problem with repair install

Not sure whether this is the right place for this or not, but I'm getting desperate. I'm trying to do a repair install of Win 7 32 bit. After the compatibility check, it gives the following...

View Article


Database Test Mail is Failed

Hi All,I have configured database Mail in Sql server 2012 but couldn't able to send the test mail.1) Enabled "broker"2) Enabled "Database Mail XPs"3) Selected "Public"4) Tried both Basic and Anonymous...

View Article

simple function or proc will also do

I need to pass 2 parameter to SP/function to return dateI will be passing the tableName and DateValue in return I should be getting the max(dt_date) from tableName can anyone help me in building this...

View Article


Attach SQL Server Databse from Backup

Hi,We are using SQL Server 2005 and have deleted a database (TechnicalDB).  We have retrieved a copy of that database (Both MDF and LDF) files from backup.We have tried to attach the database (MDF and...

View Article

Business benefits of Database consolidation

HiIn my company there are number of SQL server installed standalone or along with application server. I have proposed consolidation so I am asked to give justification for business gain. Could you...

View Article

2005 all users

Is there any useful query for sql server 2005 to list all server level logins (be them windows authentication or sql server authentication)? And some clue on the server level roles assigned to them...

View Article
Browsing all 7129 articles
Browse latest View live