declare @var varchar(50)='Application-04-03-2014.txt'i have the following variable and i want to print 2014-04-03 from the given variableneed help..want to do it using the string functions
View ArticleWhy do some SQL Server examples have a letter and a period before the column...
So I'm reading (very slowly) the Querying SQL Server 2012 Training Kit book from Microsoft Press. It's very good, but I'm progressing slowly. This may seem moronic, but I don't think the book explains...
View Articleget record from special charcter after removing
I have data inserted from XML into my table with char() values.I need to get eliminated in my query for filtering datadeclare @t table (s nvarchar(max) ) insert @t values('(Location is Asia and...
View ArticleUnable to install database engine
I am a student and I am trying to get SQL Server 2008 Developer edition to install. It keeps asking for a WMI server and I do not have one on my laptop. :) I am running Vista Ultimate 32 bit. I have...
View ArticleHow to find User Login Password in SQL Server?
Hi All,Earlier one of my team member has created a user login and password but forgot the password after few days and now we need to know the password of that login. Some of the application are using...
View ArticleSQL Server 2012 Transactional Replication with updateable subscriptioins
Hi All,It is heard that Transactional Replication with Updateable Subscriptionsisdeprecated in SQL 2012 so it is not possible to configure through the wizards but we can still configure it by using...
View ArticleUnable replicate articles in pull subscription?
Hi All,Unable replicate articles in pull subscription, getting Warning: "uninitialized subscription" in replication monitor. I'm using the same credentials for both push and pull subscription but push...
View Article32 bit odbc DSN for SQL in 64 bit machine (win 2008 r2) error
Hi, I have a cloud server as below: OS - Win Ent 2008 R2; SQL Server 2008 R2 installed on a 64 bit VM. I need to create a 32 bit version of ODBC system DSN using sql native client ver 10(I am able to...
View Articlecount rows with sum range
Hi all, I got table date sum01.01.2014 3502.01.2014 2503.01.2014 4501.01.2014 5501.01.2014 56My need is to count all sums using groups: 0 - 10 11 - 2021 - 3031 - 40 41 - 50 (et cetera) These sums are...
View ArticleCONVERT IIF FROM SQL 2012 TO SQL 2008 R2
HI I USED IIF IN MY SQL SERVER 2012 VIEW NOW I WANT TO CANVER TO SQL 2008 R2I KNOW I MUST USE (CASE WHEN ) NOW I HAVE iif(Tafsil = BalanceSheet6ColumnTafsil.Tafsil1, '1', iif(Tafsil =...
View Articleget sum multiplied values from function
I have an existing function and need to alter function to give result of the values multipiled until its parent is reached.need to also display the parent-description.--CREATE TABLE CREATE TABLE...
View ArticleData Search In SQL Database
Hi, i want user to type a string in textbox, and i will search, if textbox.text exists in my SQL database table or not. Below is the code i'm using :--------------- string txtname =...
View ArticleChange local connection string on remote server
Hello, I have searched every post and tried every connection string there but can't figure out how to connect to my database on my remote server. I am using Visual Developer 2005 Express Edition in C#...
View ArticleReason: Invalid login information
I can log in to a database with administrator account, but not with an user account.I am getting "Invalid login information" error message. What will be the likely cause for this?I am using Winodws...
View ArticleMSSQL policies
MSSQL policies does not recognize user connections. The error message reads:Error: Unable to connect to the data source using the defined settings. Server has returned: ODBCError 28000:...
View ArticleSql Express Connection Problem
I have a problem connecting with Sql Express. Here is the setup: 3 machines, all running SqlExpress on XP.Machine 1 is a notebook, and machines 2 and 3 are Tablet PC's. I seem to have all 3 set up...
View ArticleDetaching and attaching a database for my project
I hope this is the right forum for this question. I am working with an asp.net project in Visual Web Developer 2005 Express. This is a starter kit project. There is a database that came with the...
View ArticleHow can I reinstall the enterprise manager? (SQL SERVER 2000)
I can’t use the DTS editor because shows an error.So, I want to reinstall the enterprise manager without uninstall the sql server 2000, Is that possible?If the answer is yes, How can I do that? I think...
View ArticleDownload sample db for Tabor SQL training videos
Going thru Bob Tabor's excellent SQL videos. Can anyone tell me where I can download the sample databases please ?MyCompany.*Many thanks
View ArticleSQL Server 2000 to 2005 using ISQLXMLBulkLoader
Hi, We have a COM object that has loaded data from SQL Server 2000 to an XML file to use in our web application. However we are migrating to 2005 using the same COM object but are having problems;...
View Article