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

guest account

Is there anyway to query via TSQL, to list all databases in a SQL instance (2000, 2005 and 2008) to list if the guest account has access to the database?

View Article


SQL server password policy

In SQL server 2005 and 2008, is there a TSQL query to show for all sql authentication accounts, whether they are subject to password complexity and/or password expirty policies?Is the password...

View Article


SELECT top two longest running steps from a log file

Simplified example. Our jobs write records to our own internal log file. I want to write a query that will pull log records for a specific job, between specific dates. This will help determine if the...

View Article

T-Logs on principal database in mirroring

Hi experts.we have principal database participating in mirroring with HA CLUSTER, and we have job for taking Log backup for this principal database.But,This principal database does fail over from time...

View Article

manage historical data that will be used in grouping by webforms/reports?

Our system receives transactions in a per-minute basis, and each transaction is stored in aRaw Data table that's exclusively for this. All reports, gridview webforms, etc come from tables that are...

View Article


Image may be NSFW.
Clik here to view.

Calling all SQL Server fans! Your chance to win love and glory! Be our...

November has been designated National Novel Writing Month and National Blog Posting Month.But we don't want that! We want a professional wiki article!TechNet Wiki provides anyone the chance to...

View Article

New to MSSQL - need help with a query to remove spaces within a field

After data conversion the leading and trailing spaces were removed from the data in the "tag" column.  However spaces in the middle of the column were not removed.  Tag data must be unique.  When I run...

View Article

With nolock is recomended

HelloWith(nolock) si recomendated with a database OLTP.

View Article


sql server access

after downloading sql server several times I can't see the basic database engine loaded

View Article


Entity Framework and Package Manager Publishing to Azure

I am creating a secure ASP.NET MVC 5 app and need to update the database in the Package Manager Console. There is an error that occurs every time I try to update the database. Following the...

View Article

Memory utilization was very high

Hi All Memory utilization was very high  RAM Was 18GB. SQL SERVER.exe was utiling around 16GB  Kindly suggest me how can we bring down memory utilization. (we are not utilizing mirroring and...

View Article

Export data using stored procedure to excel

How to export and save data from SQL Server to MS Excel using stored procedure.Thanks in advanceAbhinav

View Article

Querying distinct

I am trying to execute a simple distinct query (i.e. select distinct name from tags), but the query is still returning duplicate names. Is there something else, am I suppose to add to the distinct...

View Article


Unable to connect to SQL Server using DAC(Dedicated Administrator connection)...

Hi All,I am Unable to connect to SQL Server using DAC(Dedicated Administrator connection) through SQLCMD with the '-A' parameter,however I am able to get the connection through SSMS.I am using the...

View Article

Incorrect syntax near the keyword 'Values'

Hi all I was wondering if you could help I keep getting this error when I try to build this stored procedure in sql 2008CREATE PROCEDURE dbo.TutorialAddHeadline @title varchar(100), @content...

View Article


Converting non atomic values into atomic

Hi everyone,Assume that we have a table in the below shown way.col1col21db2,sqlserver,oracle2sybase,sqlite,teradata3informix,postgrel,derbycol2 in the above table has non atomic values ryt.Is there any...

View Article

Table Designer & computed colums & case statement

 i am creating a table using table designer and i want to add a computed column for Age as follows:CASE WHEN BirtheDate IS NULL THEN NULL  WHEN DATEDIFF(yy,BirthDate, CURRENT_TIMESTAMP) >50 THEN...

View Article


WMI query problem

I'm trying to run the following wmi query:select ProcessId,Name,PageFileUsage from Win32_Process where ((Name = 'sqlservr.exe' AND CommandLine LIKE '%-sMSSQLSERVER%'))I can do this with a local admin...

View Article

New install of older version on new machine questions (2008 R2 Express)

Hi,I want to setup SQL Server 2008 R2 Express to an i5 machine running window 8.1. This should include ssis, ssrs, ssas, and the management studio. The instructions say to:Step 1: Install Microsoft...

View Article

AUto-renaming mdf & ldf filenames when restoring a database with SQL...

Hi!I am using SQL Management Studio 2014 and I am experiencing some problems when restoring a database backup.I have a SQL Server 2008R2 & SQL Server 2012 instances.On the 2012 instance, when I...

View Article
Browsing all 7129 articles
Browse latest View live