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

Make my SQL code shorter

Somebody an idea to make this code shorter?SET NOCOUNT ON SELECT    [klant_ID] AS [_klantId]    , CASE             WHEN ([naam] like '%,%' AND [naam] not like '%"%') then '"' + [naam] + '"'...

View Article


Updating 2 tables in a view

Hi,Is it possible to update 2 tables with  single view join?I have:ALTER VIEW vw_AuthorizedStationeries AS SELECT Stationeries.StationeryID, Stationeries.CreatedOn, StationeryName FROM dbo.Stationeries...

View Article


2012 Sql standard Core license

Hello,We currently have one sql server(sql server A). SQL server A has 8 cores (as per windows server task manager). Our current volume licensing summary says we have 8 quantities of 2012 Sql server...

View Article

Automatic key assignment not working....

Hi,  The automatic key assignment is trying to assign a null value to the primary key(AccountID) on saving the record causing an error. Line is bold.Regards, BobCREATE TABLE [dbo].[AppGlobal](...

View Article

run python script from sql server job and handle python error

I have a python script that automates a lot of tasks and uses libraries that aren't available outside of python. What I would like to do is create a SQL Server Job that calls the python script and...

View Article


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 Article

Stored 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 Article

Image may be NSFW.
Clik here to view.

Checking 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 Article


Is 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 Article


SSMS 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 Article

avoid 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 Article

SQL 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 Article

SQL 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 Article


How 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 Article

SQL 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 Article


Image may be NSFW.
Clik here to view.

September 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 Article

Surrogate Key vs Primary Key

Please tell one diff bw them plz

View Article


Best 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 Article

Delete 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 Article

BCP Utility Comma

I have the following problem. I need to create a .csv file with SQL (with the bcp utility). I can create this .csv file and the following data is inserted: 1","ad","dsa","333","","2","0","","","",""" I...

View Article
Browsing all 8428 articles
Browse latest View live


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