Hi There,
Can somebody please tell me the steps to rebuild master database from a corrupted installation for MSSQL Server 2012?
Thanks,
Ashish Tripathi
Regards, Ashish Tripathi
Hi There,
Can somebody please tell me the steps to rebuild master database from a corrupted installation for MSSQL Server 2012?
Thanks,
Ashish Tripathi
Regards, Ashish Tripathi
When i click on to Internet it starts up with Vosteran program which i do not want as it wont let me go any further how do i Delete this ?
i have gone in to un-install but it is not in there please can you help
Hi all,
I just started doing the XML Xquery programming in my SQL Server 2012 Management Studio. I executed the following code:
--query the XML Blob using a CTE (pulling from the XML file each time) Products WITH XmlFile (Contents) AS ( SELECT CONVERT (XML, BulkColumn) FROM OPENROWSET (BULK 'H:\Products.xml', SINGLE_BLOB) ) AS XmlData ) SELECT * FROM XmlFile GO
I got the the following Msg:
Msg 491, Level 16, State 1, Line 4 A correlation name must be specified for the bulk rowset in the from clause.
How can I specify the correction name for the bulk rowset in my project?
Please kindly help, advise and respond.
Thanks in advance,
Scott Chang
Hi I would like to know if you have any information on Silent App installs for MS SOL fetchers only? I really need to know what MSI to use in my Application and any switched i can incorporate for deployment though SCCM 2012.
Thanks,
Manny
I'm using the SQL-Server 2012 and the Management Studio along with it and set up a view which consists of several tables.
For the convenience I added an INSTEAD-OF-INSERT and an INSTEAD-OF-DELETE trigger. For some reasons I don't understand (yet) they're not behaving as they should and I did some debugging.
So far it does what it should - yet there are some issues I can't get behind and would like to know what exactly theDELETE identifier contains.
Unfortunately neither in the Watches Section nor in the Commands section it's possible to go through it. Also I can't use SELECT-statements or anything near it. Or am I doing it wrong?
How is it possible to use the Select-Command in that way?
Thank you.
Hi all,
In my SQL Server 2012 Management Studio, I executed the following code:
CREATE TABLE Products( sku INT Primary KEY, product_desc VARCHAR(30)); INSERT INTO Products (sku, product_desc) SELECT X.product.query('SKU').value('.', 'INT'), X.product.query('Desc').value('.', 'VARCHAR(30)') FROM ( SELECT CAST(x AS XML) FROM OPENROWSET( BULK 'H:\ZenProducts.xml', SINGLE_BLOB) AS T(x) ) AS T(x) CROSS APPLY x.nodes('Products/Product') AS X(product); SELECT sku, product_desc FROM Products;
I got the following message:
Msg 9455, Level 16, State 1, Line 5 XML parsing: line 3, character 12, illegal qualified name character
I have no ideas why the "product" in the statement "SELECT X.product.query('SKU').value('.','INT')" is not legal qualified name charcter!!!??? Please kindly help, advise and respond.
Thanks in advance,
Scott Chang
Hi all,
In the Notepad, I created an xml file (ZenQroducts.xml) :
<Qroducts><Qroduct><SKU>1</SKU><Desc>Book</Desc></Qroduct><Qroduct><SKU>2</SKU><Desc>DVD</Desc></Qroduct><Qroduct><SKU>3</SKU><Desc>Video</Desc></Qroduct>
In my SQL Server 2012 Management Studio, I executed the following code:
--to create a new object Qroducts in a new database OPENXMLtesting CREATE DATABASE OPENXMLtesting GO CREATE TABLE Qroducts( sku INT Primary KEY, qroduct_desc VARCHAR(30)); INSERT INTO Qroducts (sku, qroduct_desc) SELECT X.qroduct.query('SKU').value('.', 'INT'), X.qroduct.query('Desc').value('.', 'VARCHAR(30)') FROM ( SELECT CAST(x AS XML) FROM OPENROWSET( BULK 'H:\ZenQroducts.xml', SINGLE_BLOB) AS T(x) ) AS T(x) CROSS APPLY x.nodes('Qroducts/Qroduct') AS X(qroduct); SELECT sku, qroduct_desc FROM Qroducts;
I got the following message:
Msg 9400, Level 16, State 1, Line 6 XML parsing: line 13, character 12, unexpected end of input
I have no ideas why I got this "XML parsing:line 13, character12, unexpected end of input" message. Please kindly help, advise me on where I made mistake and how I can resolve this problem, and respond in this Forum.
Thanks in advance,
Scott Chang
We are using SQL server Express 2008 R2 SP2 With Advanced Services.Its a 64 bit server.We want to Patch Service Pack 3 On express edition. Could you please
tell us whether the Service Pack 3 will install on SQL Express 2008 R2 SP2 With Advanced Services or not
Could you please suggest me on this.
Sainath KompellyHi
A client has had a web application for them. the company who made this web application wanted MSSQL Express
So we have a Cloud Server, with MSSQL express installed on (It should be fine as the data shouldn't ever exceed 10GB)The server gets snapshot backups by webfusion - problem this means image based restore not individual file based and I have no control over
- hmmm
However being a cloud server means I can't readily attach a USB Hard drive to do a local backup using windows backups
The web application does have a lot of pictures, which are linked to the database via filenames (filename txt stored in db, image stored as a file in a website subfolder). - Anticipated size to reach over the next year 400GB with scope to get upto 800GB over the next 5 years (they love their high quality images)
The client has a LiveDrive online backup subscription, and knowing their software works on Server 2008R2 and Server 2012 I have installed this. So it backs up the website data as it changes to a LiveDrive online backup, this means the images and web application data is all backed up)
This means there is 1 thing not backed up (other than by the webfusion snapshot backup) - this is the MSSQL database.
This area is new to me, so I am looking for suggestions.
I would like to ideally be able to do a copy of the SQL Database to a file which could be copied back to a new server or a restore or accessed or anything... as this copy would not be an open file, it would also be able to be backed up by LiveDrive (LiveDrive can not backup open SQL database files)
Or maybe get the database to export a copy of all tables and data to a CSV file for backup purposes, or including CREATE attributes (like phpmyadmin will do with MySQL databases)
Or is there another easier way to just make sure the SQL database can be backed up? At the moment the client is happy with their understanding of the snapshot backup... but I like to plan many disaster recovery ideas, and would just like a little bit extra recovery options just in case someone accidentally overwrites a database entry I can view it from a backup and restore etc.
Any suggestions gratefully received
thanks
Tris
Hello Team,
I want to install multiple sql express instances in single machine. My question is that how many instances of sql server express editions i can install in single machine ?
Thanks,
Udaya Kumar
udaya kumar
Hi everybody, We have installed both SQL 2012 Express and SQL 2012 Standard (licensed). All our instances which we need are running fine on the Express version.
I’m having problems uninstalling the licensed SQL 2012 Standard one. When starting the uninstall process I cannot see which server I’m removing.
My question is: how I can only for sure! remove the SQL 2012 Standard version and keep the Express 2012 working?
Greetings. TIA
win_builder
Hello,
We recently set up a SharePoint Foundation 2013 server to replace our aging WSS 3.0 instance. I recently found that the version of SQL Express included with SPF is limited to 10GB, and decided to use RBS to save space in SQL. I have since performed all of the necessary configuration and migrated existing SQL data to the RBS blobstore. I was expecting SQL to be using very little space, however it is still using nearly 2.6GB. After digging into the issue further, I have found a single table (rbs_filestream_data_1) in my DB is using most of the space - nearly 2.5GB. Can anyone offer some insight into why this table is so large? Is there anything I can do to make it smaller? Thank you.
Background Information:
I'm in the process of converting some VS2008/SQL Express2005 apps to VS2013/SQL Express. On one app I get the error message shown on the above screen image. This occurs when I attempt to insert the test dialog. What is causing this?
Iam doing silent installations often on several Systems.
I install the Microsoft SQL Server 2012 Management Studio Express with this command:
"SQLManagementStudio_x64_DEU.exe /ACTION=INSTALL /QUIET /IAcceptSQLServerLicenseTerms="True" /FEATURES=CONN,BC,SSMS /indicateprogress"
The installation will take almost an hour to finish.
I never get error messages or so. The installation afterwards is fine.
Is there a way to speed up the installation process?
Thanks!
Hello all. I have a table with the following fields:
[ID] [int] IDENTITY(1,1) NOT NULL, [ImagesDeleted] [int] NULL, [ImagesPublished] [int] NULL, [PercentUsed] [decimal](18, 2) NULL,
I'm attempting to update [PercnetUsed] whenver I increment [ImagesDelted] or [ImagesPublished] i'm using the following proc to do so. However, my [PercentUsed] is not calculating correctly. Can somebody point me in the right direction? Thanks in advance!!
ALTER PROC [dbo].[sp_ImageSites_U_ImagesStats] @ID INT, @Stat NVARCHAR(1) AS SET NOCOUNT ON SET XACT_ABORT ON BEGIN TRAN; DECLARE @imagesPublished INT = (SELECT [ImagesPublished] FROM [ImageSites] WHERE [ID] = @ID) DECLARE @imagesDeleted INT = (SELECT [ImagesDeleted] FROM [ImageSites] WHERE [ID] = @ID) if (@Stat = 'D') BEGIN SET @imagesDeleted = @imagesDeleted + 1 END ELSE IF (@Stat = 'P') BEGIN SET @imagesPublished = @imagesPublished + 1 END DECLARE @percentUsed DECIMAL(18, 2) = 0; if (@imagesDeleted > 0) SET @percentUsed = @imagesPublished / @imagesDeleted UPDATE [ImageSites] SET [ImagesPublished] = @imagesPublished, [ImagesDeleted] = @imagesDeleted, [PercentUsed] = @percentUsed WHERE [ID] = @ID COMMIT
I am trying to install SQL Server 2008 in my local machine. However, I kept running into errors with the following error message:
"The MOF Compiler could not connect with the WMI Server. This is either because of a semantic error such as an incompatibility with the existing WMI repository or an actual error such
as the failure of the WMI Server to start".
I also ran "rundll32 wbemupgd, UpgradeRepository" to rebuild WMI repository, it doesn't help either. I got the same error message.
Any ideas what settings I need to change in order to ensure a successful installation of SQL Server 2008?
I am running following query which is not working properly:
create table #temp( tableName nvarchar(50) ) insert into #temp SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_TYPE = 'BASE TABLE' DECLARE @name VARCHAR(50) DECLARE @TQ VARCHAR(500) DECLARE @ContainName VARCHAR(500) DECLARE db_cursor CURSOR FOR SELECT tableName FROM #temp OPEN db_cursor FETCH NEXT FROM db_cursor INTO @name WHILE @@FETCH_STATUS = 0 BEGIN select @name IF COL_LENGTH(@name,'IsDeleted') IS NOT NULL begin IF COL_LENGTH(@name,'IsActive') IS NOT NULL begin exec ('UPDATE '+@name+' SET [IsActive] = ~[IsDeleted]') end ELSE BEGIN exec('ALTER TABLE '+@name+' ADD IsActive bit') exec ('UPDATE '+@name+' SET [IsActive] = ~[IsDeleted]') exec('ALTER TABLE '+@name+' ALTER COLUMN IsActive SET DEFAULT ''true''') END if exists(select * from sysobjects o inner join syscolumns c on o.id = c.cdefault inner join sysobjects t on c.id = t.id where o.xtype = 'D' and c.name = 'IsDeleted' and t.name = @name) begin set @ContainName=(select o.name from sysobjects o inner join syscolumns c on o.id = c.cdefault inner join sysobjects t on c.id = t.id where o.xtype = 'D' and c.name = 'IsDeleted' and t.name = @name) exec('ALTER TABLE ' + @name + ' drop constraint ' + @ContainName) end exec('ALTER TABLE '+@name+' DROP COLUMN [IsDeleted]') end FETCH NEXT FROM db_cursor INTO @name END CLOSE db_cursor DEALLOCATE db_cursor drop table #temp
In most of the tables in my db there are two columns "IsActive" and "IsDeleted" with both of them having default key constraint and of type BIT I am trying to do following:
If column IsDeleted exist, copy its negative values of IsDeleted to IsActive.
If column IsDeleted exist but not IsActive, then create column IsActive, copy negative values of IsDeleted to IsActive, then add default key constraint to the column IsDeleted.
3. Finally remove the default value constraint from the column IsDeleted and then drop that column.
I am running above query for each table in db.The above query is running and giving the expected result i.e. copying negative values of IsDeleted to IsActive and dropping the column IsDeleted in all the tables. Only problem is that I am getting errror: "Incorrect
syntax near the keyword 'SET'."
I am working on building a website that will allow a user to view the data real-time from multiple PLC devices and show a graph of previous data for each device up to 24 hours.
I think the best way to do this would be to have a table1 that contains the real-time data from each device and the data from that table is logged into a table created for each respective PLC device.
As an example:
Table1 contains the device name, and the currentspeed of the device.
device1 table contains device name and speedhistory of the device.
I am wanting to take the data obtained from Table1 and log it into device1 as a new record to hold the historical speed data to represent in a graph on the webpage. What is the best way to do this?
salman