Quantcast
Channel: ฟอรัม Getting started with SQL Server
Browsing all 8428 articles
Browse latest View live

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


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


regarding sqlserver

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

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


Select distinct latest records

RecordDatestatusPlace2014-05-29 10:34:31.850YESK126 - J.H.S 126 John Ericsson2014-05-29 10:34:52.427YESK131 - P.S. 1312014-05-29 10:36:12.323YESK258 - I.S. 258 David Ruggles2014-05-29...

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

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

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