update statement
Hi,I want update table when user changes name or add new newname in table.CREATE TABLE [dbo].[Management_Attendee]( [attendeeid] [int] IDENTITY(1,1) NOT NULL, [attendee1] [nvarchar](50) NULL,...
View ArticleHow do I connect to my Database?
I have created an application role within a SQL Server (2008 R2) that has a pipe name of:\\.\pipe\sql\queryI am trying to connect to the SQL Database with the following credentials:Server Name:...
View ArticleSQL Server Express
I have a plan to make some web-base program for my friend's small business.Only 2~3 users will use this program and the data transaction is not very big.I'd like to adopt the SQL Server Express as a...
View ArticleNumber of records processed/inserted in a table (Without A Loop?)
Hi friends,Although a counter may be used in a loop to show the progress of a query, is there any similar way to apply such a way in case of a non-looping query structure?I actually have one of the...
View ArticleGranting permissions.
Hi All,My customer asked me to create windows login and grant him read access to 2 databases, which I have created and granted as per their requirement I even sent them screen prints etc.But then that...
View ArticleSQL Server Agent Stopped in SCM. But shows running in SQL Server Management...
I have SQL Server 2012 installed. in that the agent service is showing running in Management studio with green mark. But no jobs are executed which are scheduled. When i Check in SQl Server...
View ArticleNew to SQL databases - trying to install on my PC to work locally and go...
I have installed SQL Server Express (SqlLocalDB.msi) and SQL Management Studio (SQLManaementStudio_64_ENU) but can't seem to get to a place where I can create a database. I have a .BAK file that is a...
View ArticleDifference between Session/processes/thread/worker/request etc
Hi ,Please help me in the understanding of following and their relationship with each other. a)Select count(*) from sys.sysprocesses-- 35 b) Select count(*) from sys.dm_exec_sessions--35 c) --Select...
View ArticleQuerying Data by certain Hour.
I have a visual studio program that is linked to my SQL database. I am pulling values from that database and have created a report viewer in Visual Studio. I want to ONLY pull data at 6:30 a.m. 2:30...
View ArticleDatabase Creation Error
Hi,I'm trying to create a database but keep getting this error:I read online that I should try disconnecting and reconnecting. I also tired restarted SSMS, the SQL Server instance and the server itself...
View ArticleBrighten up our day! Become a shining September SQL Server Guru!
As we in the Northern hemisphere watch the leaves turn brown, and the days grow shorter once more, we mourn the onset of darkness and cold. Winter is coming, and it may be a long one! (heard that...
View ArticleHow to validate backuped SQL DB by command line ?
I am beginner of SQLDB and uses SQL2008.How could I validate that backuped SQL DB file are OK(restorable ) by command line(not by GUI) ?
View ArticleBackup DB with dynamic sql - want to substitute in dbname and disk file path
Re: Backup DB with dynamic sql - want to substitute in dbname and disk file pathHope I can explain this. Below is a small snippet of code. I want to set @SQLTemplate_TSQL once at the top of the script...
View ArticleExporting table data into text files
I got a request to export the data from about 85 tables into 85 text files. I assume that they will want a header row and some delimiter character. This is a process that must run every night by a sql...
View ArticleMODEL database Simple
Hi All,In one of our servers, the MODEL database is set to SIMPLE recovery model and as result log backup job failed and I notified the customer that this is failing due to MODEL database is in SIMPLE...
View Article"Cell is Read Only" with inner join in "Select Edit Top 200 Rows" option
When I right-click on Table1 and click on "Select Edit Top 200 Rows" option, I can change values, add/delete records, etc. As soon as I add an INNER JOIN in the sql editor to Table2, the cells become...
View ArticleBacking Up Database While Resetting / Reinstalling Windows?
Hi friends,While I seek to reset or format my disk and re-install my current Windows 8 with either a fresh one or even replacing the same by Windows 8.1 what steps to take to copy all my local DBs and...
View ArticleCan you use a @variable of strings in a WHERE IN @variable
Re: Can you use a @variable of strings in a WHERE IN @variableI have a string of column names. I want to only return results for columns in that list of column names. Can I get the WHERE NOT IN to work...
View Article[Help] Problem on starting SQL Server
Hi, i have installed SQL SERVER EXPRESS 2008 and when i try to start it, i get the following error: Code SnippetSQL Server Configuration ManagerThe request failed or the service did not respond in a...
View ArticleHow to resolve this.
Error: 26040, Severity: 17, State: 1. Server TCP provider has stopped listening on port [ 1433 ] due to a failure. Error: 0x2726, state: 1. The server will automatically attempt to reestablish...
View Article