How T-SQL Identifes Numeric values specified as String
I would like to get a n explanation of the behaviors of the following queriesSELECT '4' + 2 result : 6Select '4' + '2'result : 42So how exactly sql handles the first query as an arithmetic operation...
View ArticleStored procedure to select between dates?
I am writing a stored proc to Select information, I would like it to only select between dates?ALTER PROCEDURE [dbo].[spname] @Supplier int AS BEGIN SELECT ProductScenario_PK,...
View ArticleSSMS 2012 - Central Management Servers
How does the Central Management Servers work?I found http://msdn.microsoft.com/en-us/library/bb934126(v=sql.110).aspxSo, step 1: I registered server (looks to me like a group name);step 2: I registers...
View ArticleChecking these Views and Trigger Questions
I got these questions from a practice book based on sections that talks about views and triggers. It does not have a Key to grade it. Does any of the questions I answered look wrong(I answered in...
View Articleavoid inserting data in SQL
Hello. I have a project with Local Database. It's supposed to consist only one tabe row. How can I forbide inserting more than one row in my SLQ Database table (*.sdf)?
View ArticleIs there a way to see who uses a database?
I'm wondering if there is a way to do some kind of audit in SQL Server, so I can see who is logging into a database that I setup. One client has the credentials that they need, and that's just fine....
View ArticleSQL Server Config Manager, Windows Administration Tools, Manage Computer and...
I want to cross check the SQL Server Config Manager, Windows Administration Tools, Manage Computer and Task Managerfor running of SQL SERVER.I stop SQLEXPRESS instance in one of the above tools but the...
View ArticleSQL 2014 Express on windows 7 professional (x86)
Hi all,Thanks in advance for all reply's, My question is it possible to install SQL2014 Express edition in here:-http://msdn.microsoft.com/en-us/evalcenter/dn434042.aspx (Express with Tools...
View ArticleSeptember 2014 TechNet Guru SQL Server Winners announced!
The September Guru results are posted!http://blogs.technet.com/b/wikininjas/archive/2014/10/16/the-microsoft-technet-guru-awards-september-2014.aspxBelow are the highlights, just the medal winners....
View ArticleSQL Server 2012/2014 DBA
Hi, I have been working as system engineer for almost seven years. My primary focus is on Windows Server 2008 R2/2012 R2 technologies, Exchange Server 2010/2013, PowerShell (v2, v3 and v4), SCCM/SCOM...
View ArticleHow do you initialize database on reoccurring basis for testing?
Hi,How do you initialize SQL database on reoccurring basis for testing? Using MS SQL Server Management StudioThanks, Bob"New to SQL Server? Beginners just getting started - here's the place for help...
View ArticleBest Database to Locally Connect to for C# Program
I plan on accessing a local database from a C# program. Right now, I've been using Microsoft SQL Server Management Studio for creating my database. I was having some troubles accessing the database and...
View ArticleDelete record where duplicate in part of raw 2 advanced
I am new @ sql , table name CHECKINOUT DB Name NEWFP i need to delete all record where the checktime between it from 1 to 5 minute or the same and must be the same user id but keep the fires...
View ArticleProblem in View
I have a question regarding creating a view. Does the view name has to be something in the existing database? I got the following error when I create a view. Please help, thank you. Create view...
View ArticleDead lock schedulers in sql server 2008R2 sp2.
Hi All,I did googled for this error and all I could get is about error 17883,17884 etc and the causes for this error, butPlease help me in with recommendations to avoid this error in future.SQL VERSION...
View ArticleTemp DB size
Hi, all,We just installed a new program which uses SQL 2008 R2 DB. One of the recommended specs was 40 GB of temp DB size. Can anyone please explain what it meant by that?What I have now is quadcore,...
View ArticleFromatting date within an expression
hi all!I have written a report which uses an expression to combine a couple of fields and some text in one sentence. the issue that I have is that when I combine texts and fields I don't have the...
View Articlesqlquery to get all cases in a child table
I have to tables - demographics and PatSubs. Both tables are linked by caseno filed.Now, PatSubs may have one or many substance entry for the caseno.If I do the following:USE [njpies2013]GOSELECT...
View Articlesql query on many child tables
I have an SQL database with many linkesd tables.If I do:SELECT [CaseNumber]<o:p></o:p> ,[CenterCode]<o:p></o:p> ,[Outcome]<o:p></o:p>it will give me all...
View ArticleSQL query to retrieve a Rich Text Memo field
What will be the select command to retrieve a field [ToxPatMemo] which is in RTF format? I just want to retrieve the Text contents without all the characters for underline, bold, etc.Thanks in...
View Article