Quantcast
Channel: Getting started with SQL Server forum
Browsing all 9243 articles
Browse latest View live

Can an asterisk be used in an Append Query or some other way?

Hi friends,Is there anyway to merge two or more tables reflecting the view with all the columns in such a way that similar ones are used ones and additional ones also included in a way other than using...

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


HELP! STILL can't connect to SQL Server

This is so frustrating.  12 years ago I used to be a computer guy, now I feel so lostScenario:First machine SBS 2008Second machine Win Server 2008 joined to domain of SBS server and then SQL Server...

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

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


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

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


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

VBScript Runs Correctly From Command Prompt, But Not From SQL Server Agent Job

I'm trying to run this script on my local machine to do some post-batch cleanup and it doesn't run correctly from the scheduled job (or when I invoke the job).Here's the script in question:Option...

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

regarding sqlserver

Hi,   how to find sum of first 10 numbersin sql server

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


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

How to create alert for suspect database

Hi All,i want  to create alert or mail for when database goes to suspect mode. if possible please provide Refferal links to create suspect alert.Thanks Advance..

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
Browsing all 9243 articles
Browse latest View live


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