How to write this piece of code into stored procedure
DECLARE @dCurrentTime DATETIME DECLARE @dCurrentTimeMinus5 DATETIME --Declare @count int SET @dCurrentTime = GETDATE() SET @dCurrentTimeMinus5 = DATEADD(minute, -5, @dCurrentTime) set nocount ON...
View ArticleAny suggestion for the following t-sql because the locations and everything...
use AssignedRiskgo truncate table PremModifiersgo BULK INSERT PremModifiers FROM 'D:\load\data\AssignedRisk\ARPremModifiers.txt' WITH ( FIELDTERMINATOR = '^', ROWTERMINATOR =...
View ArticleI'm looking for free hosting of SQL Server database
I was wondering if anyone knew of a company that does free hosting of a SQL Server database? Basically I'm looking for the free hosting just so I can test my application. I want to know how a desktop...
View ArticleTrouble with seperating inputs
I am still new to the world of SQL, and I am trying to create a report with two input values, all of which can be different.For example, I want to pull all active clients and for the first input the...
View ArticleError encountered during MS SQL Server 2008 R2 Express (64bit)
And this is the a snapshot of the error.Ta-da!
View ArticleIf someone new to SQL Server , What is the best choice for him
If someone new to SQL Server , what is the best choice for him , start learning SQL Server 2012or SQl Server 2008 , he is very confused because most of jobs needSQL Server 2008 , but he also want to...
View ArticleHow to Install SQL Server 2008 R2
First of all thank you for any and all help that you can provide. This is the most frustrating time I have ever had with a Microsoft Product. The install is always the easy point and I cannot get SQL...
View ArticleSend Email Alerts immediately depending upon specific data in a column
Hi Experts,We do custom logging into a table. The requirement is that the developers should receive email immediately whenever there is [b]specific data[/b] in that columnAny Input is Appreciated...
View ArticleSQL Server: How To add old instance in new installation
i have installed sql server 2008 r2 vr. on my client's desktop , during installation i change path of instance to "D" partition to avoid database loss when C drive get formatted. In future when i re...
View ArticleSQL server verison
Hi,I am confuse with my sql version now, either it is a standard version or express editionWhen i run the query " select @@version ", it gave me this answer. Just when i google the version number, it...
View ArticleSQL server 2008
Hi,I am selecting multiple records from table and joining them.My query is like this,SELECT B.ace AS Column1 K.lastname +' '+ K.firstname AS Column2, R.inside AS Column3, B.number AS...
View ArticleTable and index reorganize
Greetings,I'm a newbie to SQL Server administration, I recently reorganized tables in my database running inSQL SERVER 2008 R2. But I found my avg_fragmentation_in_percent is between 40% - 99% for few...
View Articlesql server backups
I have been doing some risk assessments around sql server backups, and one tool we used (best practices analyser) flagged up some worrying findings around databases without a recent backup? q1) I am...
View Articlestart-up Error (ssms/resetseting)
Dear All,I am getting Error in sql start-up Error is Like : ssms.exe/resetseting Please help me out!!as per require i attached the screen shot !Please Please !!Thanks . Rajesh Kumar email-Id...
View ArticleSQL SERVER
I am having two tables named MK_Registration and MK_Groupi want to generate one to many relationships between these two tablesi.e MK_Group is having fileds named groupid,mkcodeand MK_Registration is...
View ArticleWant to collect performance data for analysis through out the servers
Thanks Guys,i am working on a VB.NET and making a performance ,monitoring,analysis and alerting tool for my client.Can you guys provide a complete script to fetch counter data using logman/WMI queries...
View ArticleSQL instance doesn't accept Connections periodically
Hi everyone,I have SQL 2k5 instance. during recent days I periodically got this error: "The client was unable to reuse a session with SPID xx, which had been reset for connection pooling. This error...
View ArticleMonitoring
Hi,How to monitor the logs for successful execution of all the specified jobs?
View ArticlePush existing table into a new Schema
I have a table named "dbo.Lease"and there is a schema that has tables that look like "ground.dj.Orders"My task is to push the "Lease" table into the "ground.dj" schemaCan someone give me the syntax for...
View Articlei need to modify this query to get the count of last 15 minutes of data
select * from Error_Tracking where (dCreated > '2013-07-30 00:00:00.000' and dCreated < '2013-07-31 00:00:00.000')k
View Article