Rename SCCM SQL Database is this possible
I would like to rename the SCCM 2012 database. I found a few links explaining how to rename the SCCM Database in SCCM 2007 using a site reset but I have not found anything on SCCM 2012. http://blogs.technet.com/b/configurationmgr/archive/2009/10/27/renaming-the-configuration-manager-2007-database.aspx
Does anyone know if renaming the SCCM 2012 DB is possible. I would only like to rename it and not move it. I was able to get to the change SQL configuration options in the site reset wizard. The SQL server name could be change but the database name
was grayed out and could not be changed.
Thank you in advanced
The reason for the rename is because we would like to use Configuration Manager 2012 Web Frontend for remote control access. This will give our Helpdesk and Desktop techs a web interface to be able to use for remote control feature without requiring the
management console installed. We used something similar in the past and was very popular in our users. The problem is that the software is looking for an SCCM DB that is named CM_OURSITECODE. When setting up our SCCM 2012
DB we used a different name for the database SCCM2012DB. I would like to change our database name to CM_OURSITECODE so this Web Frontend software will work.
I see where it says it is supported but that is for SCCM 2007 and we are using 2012. When I try the steps in the post I can change the server name but the database name is grayed out and can't be changed. In my case I would
like to leave the server name alone and just change the database name. With the option being grayed out I'm thinking that MS has changed something to not allow DB name changes in SCCM 2012. I have not been able to find any documentation that states it is supported
or not.
IIRC, it's not best practise to talk directly to the DB either. This vendor probably should have used the SMS Provider instead.
SMS Provider vs SQL Server: Although Configuration Manager leverages SQL Server for data storage, SQL Server is NOT the primary programming interface to Configuration Manager. The primary programming interface to Configuration Manager is the SMS Provider (WMI) - object creation and modification must be done via the SMS Provider. You should consider SQL Server as providing read-only access to Configuration Manager data for querying and reporting purposes. This is not a matter of permissions, rather matter of maintaining data integrity.
http://msdn.microsoft.com/en-us/library/dn529009.aspx
Tim Nilimaa-Svärd | Blog: http://infoworks.tv | Twitter: @timnilimaa
Similar Messages
-
Dynamic Query using no PL/SQL . Is this Possible ??
Hi Everyone,
Based upon the innery query result , can we have a different outer query I want to know whether this is possible with out PL/SQL.
Example:
This is my inner query :
with q1 as
(select
case when x>500 then 0
else 1
end value
from
table1 )
Here is where I am stopped , I only want to run either of these queries depending upon the value,
I know that i can do it using PL/SQL but I want to know whether we can do it with pure SQL
Some thing like this to happen :
when value=0 : run this query : select * from table2
when value=1 : run this query : select * from table2 join table3 using (col1)
Thanks.
VKSure. A little modified way ->
satyaki>
satyaki>
satyaki>select * from v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
PL/SQL Release 10.2.0.3.0 - Production
CORE 10.2.0.3.0 Production
TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
NLSRTL Version 10.2.0.3.0 - Production
Elapsed: 00:00:01.82
satyaki>
satyaki>
satyaki>select k.deptno,
2 k.empno,
3 k.ename,
4 k.job,
5 k.mgr,
6 k.hiredate,
7 k.sal,
8 k.comm,
9 null dname,
10 null loc
11 from emp k
12 where &eid = 0
13 union all
14 select *
15 from (
16 select *
17 from emp
18 join dept
19 using (deptno)
20 )
21 where &eid = 1;
Enter value for eid: 0
old 12: where &eid = 0
new 12: where 0 = 0
Enter value for eid: 0
old 21: where &eid = 1
new 21: where 0 = 1
DEPTNO EMPNO ENAME JOB MGR HIREDATE SAL COMM DNAME LOC
10 9999 SATYAKI SLS 7698 02-NOV-08 55000 3455
10 7777 SOURAV SLS 14-SEP-08 45000 3400
30 7521 WARD SALESMAN 7698 22-FEB-81 1250 500
20 7566 JONES MANAGER 7839 02-APR-81 2975
30 7654 MARTIN SALESMAN 7698 28-SEP-81 1250 1400
30 7698 BLAKE MANAGER 7839 01-MAY-81 2850
10 7782 CLARK MANAGER 7839 09-JUN-81 4450
20 7788 SCOTT ANALYST 7566 19-APR-87 3000
10 7839 KING PRESIDENT 17-NOV-81 7000
30 7844 TURNER SALESMAN 7698 08-SEP-81 1500 0
20 7876 ADAMS CLERK 7788 23-MAY-87 1100
DEPTNO EMPNO ENAME JOB MGR HIREDATE SAL COMM DNAME LOC
30 7900 JAMES CLERK 7698 03-DEC-81 950
20 7902 FORD ANALYST 7566 03-DEC-81 3000
13 rows selected.
Elapsed: 00:00:00.32
satyaki>/
Enter value for eid: 1
old 12: where &eid = 0
new 12: where 1 = 0
Enter value for eid: 1
old 21: where &eid = 1
new 21: where 1 = 1
DEPTNO EMPNO ENAME JOB MGR HIREDATE SAL COMM DNAME LOC
10 9999 SATYAKI SLS 7698 02-NOV-08 55000 3455 ACCOUNTING NEW YORK
10 7777 SOURAV SLS 14-SEP-08 45000 3400 ACCOUNTING NEW YORK
10 7782 CLARK MANAGER 7839 09-JUN-81 4450 ACCOUNTING NEW YORK
10 7839 KING PRESIDENT 17-NOV-81 7000 ACCOUNTING NEW YORK
20 7566 JONES MANAGER 7839 02-APR-81 2975 RESEARCH DALLAS
20 7876 ADAMS CLERK 7788 23-MAY-87 1100 RESEARCH DALLAS
20 7788 SCOTT ANALYST 7566 19-APR-87 3000 RESEARCH DALLAS
20 7902 FORD ANALYST 7566 03-DEC-81 3000 RESEARCH DALLAS
30 7844 TURNER SALESMAN 7698 08-SEP-81 1500 0 SALES CHICAGO
30 7521 WARD SALESMAN 7698 22-FEB-81 1250 500 SALES CHICAGO
30 7698 BLAKE MANAGER 7839 01-MAY-81 2850 SALES CHICAGO
DEPTNO EMPNO ENAME JOB MGR HIREDATE SAL COMM DNAME LOC
30 7654 MARTIN SALESMAN 7698 28-SEP-81 1250 1400 SALES CHICAGO
30 7900 JAMES CLERK 7698 03-DEC-81 950 SALES CHICAGO
13 rows selected.
Elapsed: 00:00:00.24
satyaki>Regards.
Satyaki De. -
Batch Rename based on Content, is this possible????
Hello all,
I have a large amount of PDF files that I need to rename. The PDF files are contracts relating to individual companies and I need to place the company in the title.
right now they are saved with numbers at the end: Contract_1, Contract_2, etc.
I need to have it as: Contract_Smith Co, Contract_ACME, etc.
Does anyone know of a PDF renaming (or splitting program) program that can replace the numbers with a specific line of text from within the pdf itself?
Any help would be greatly appreciated.
Thanks.
KevinHey thanks a lot, unfortunately I am unsure of how to edit Meta data, how would I do that for all 300 at once, does it help to know that I created the contracts using InDesign's data merge system
thanks a lot, Kevin -
Database Toolkit: Reading data from SQL database
Hello,
I have been working on a automated test system storing data into a SQL server database. Once you get your head wrapped around the toolkit and walk through some of the examples it is not too bad. Writing to the database was very straight forward. I simply put all of my data including the primary keys into a cluster and inserted the cluster into the specified table. As I learned the hard way, it is very important for all of your types to match up. I saved double type from labview as decimal type in the SQL database, and long integer in labview as integer in the SQL database.
For the the read VI, this is where my questions lie. After establishing a connection reference I used the "DB Tools Create Parameterized Query" VI combined with a SQL statement to find the recordset that I was looking for. I used a standard SQL statement using the primary keys such as, "Select * From TableName Where Measurements = "%Measurements%" ". This VI creates a command reference which I then passed to multiple "DB Tools Get Parameter Value" VIs. I could not get this to work with the command reference.
I then switched over to the "DB Tools Execute Query" inputting the same SQL statement I had used before. THis VI passed a recordset reference, which I then passed to a "DB Tools Get Properties" VI to check if the database was empty or not. I then passed the recordset reference to multiple "DB Tools Fetch Element Data" VI's to read the data from the SQL database. THis worked very well.
therefore I am wondering:
What is the difference between a command reference and a recordset reference in the Database connectivity toolkit?
Why would one work and not the other?
Is there ever a case when you would want to use one method over the other?
I have asked my app guys and Labview training instructor different database type questions, and I not received a decent answer to date.
Thanks,
JacksonHello,
Can you pass the command reference to a single "DB Tools Get Parameter Value" VI? What exactly do you mean when you say you couldn't get this to work with command references... can you post an error message or the results? The documented difference is that they are different flavors of ADOs (activeX data objects), one is a command and the other is a recordset reference. I know this does not draw a precise distinction, but I'd like to understand this problem fully so we can find one!
Please repost with anything more you can give!
Best Regards,
JLS
Best,
JLS
Sixclear -
Hi Friends,
We have planned to upgrade our SCCM 2012 SP1 infrastructure to SCCM 2012 R2 so we have setup test environment to test SQL database upgrade before doing same in production.
But while testing SQL database upgrade on test machine, it is getting failed with below error.
ConfigMgrSetupWizard.log
ConfigMgrSetupWizard Verbose: 1 : Scripted setup failure handling callback called. Failure: 29.
ConfigMgrSetupWizard Verbose: 1 : Received error [Setup cannot upgrade the ConfigMgr database. Contact your SQL administrator.] from native code.
ConfigMgrSetup.log
ERROR: SQL Server error: [23000][2627][Microsoft][SQL Server Native Client 11.0][SQL Server]Violation of PRIMARY KEY constraint 'ContentDistribution_PK'. Cannot insert duplicate key in object 'dbo.ContentDistribution'. The duplicate key value is (921). :
tr_ContentDistributionNotification_insert
ERROR: Failed to execute SQL Server command: ~-- ~-- Rebuild ContentDistribution tables ~-- ~IF (EXISTS(SELECT TOP 1 1 FROM dbo.SMSData WHERE SMSBuildNumber <= 7900) AND dbo.fnIsSecondary() != 1) ~BEGIN ~ exec spRebuildContentDistribution
@TruncateTables=0 ~END
Failed to create process of SetupWpf.exe.
Can anyone please help to get this resolved.
Thanks.We found out that there were duplicate entries in the PkgStatus_G and the PkgServers_G tables in the SCCM DB. We identified them, deleted them , and then we were able to run the /TESTDBUPGRADE command and it went through fine. We performed
all of this on a COPY of the PROD DB and then moved the changes in PROD. Hope this helps someone.
- Dave -
Is it possible to load SWF files from an SQL database?
Hi all, I am very new to flash (I am primarily a C'# developer!) and I have been asked to investigate the possibility of doing the following;
Create an application that allows swf files to be uploaded and stored inside of a SQL database as binary data (Why a database is a long story!)
Allow this binary data to be extracted via a http request to be dynamically loaded inside of a web page.
Now the first part was easy. I have all of my swf's uploaded and stored inside of the database. I have code that can make a request for the binary and write it to the response, so far so good. Now this is where I am stuck.
I thought I could dynamically load the swf binary data by creating a very basic swf that simply contains a movie clip holder and for now a simple loadMovie statement. My idea being that I can could provide a url for the loadMovie statement that returns the swf binary data. This is where I have ground to a halt.
I can see the call being made from the swf, I can see the data being returned but I cannot get it to render. I remember seeing an article some time agao where someone stated that they had used this method with success but I cannot find now. Has anyone ever done anything like? Is it even possible? Am I missing something simple?
I have tried to return both the raw binary data and also used response.write but to no avail. Can anyone help?You are possibly trying to load AS3 swf into an AS2 Container at least the use of loadMovie() points in that direction. Be sure to use AS3 and target at least Flash 9 in your Loader/Main.swf. Also the AS3 concept of how to load swfs differs a lot from the old concept.
Look into the docu:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Loader.ht ml
But the biggest Problem seems to me -what you mentioned- that Loader needs a (defined) URLRepuest and since your swf files have no "real" URL and you surely don`t want to let the user directly write to your server, a workaround would be to write the BinaryStream with AIR-functionality to a local installlation directory and load it then from there. -
SCCM CAS & Primary Site Server - Same SQL Database and Reporting Instance
Hi Fellows,
I need to know whether, for SCCM CAS, a dedicated/seperate SQL instance for SCCM CAS a mendatory requirement or recommendation?
Or we can use the same SQL instance used by Primary Site Server?
J.AThere no technical reason not to have the CAS and Primary database in separate instances of the same remote SQL server. However if you are going to deploy a CAS that would suggest a very large number of clients and a very busy infrastructure. In that case
I would RECOMMEND separate SQL servers.
This is a good guide for SQL sizing (but it is only a guide)
http://blog.coretech.dk/kea/system-center-2012-configuration-manager-sql-recommendations/
Gerry Hampson | Blog:
www.gerryhampsoncm.blogspot.ie | LinkedIn:
Gerry Hampson | Twitter:
@gerryhampson -
Is this possible to already reserve 2 TB of space on a data drive for one database
Is this possible to already reserve 2 TB of space on a data drive for one database.
Please suggest how to do this.
Best regards,
VishalYou can either change the current filesize of current files in your database or add new file(s) whose current size is 2TB by using the ALTER DATABASE command. If you don't have instant file initialization, adding 2TB to data files can take a long time.
If you are adding 2TB to log files that can take a long time whether you have instant file initialization or not. For info on instant file initialization see
http://technet.microsoft.com/en-us/library/ms175935%28v=sql.105%29.aspx
and
http://sqlblog.com/blogs/tibor_karaszi/archive/2009/03/09/do-you-have-instant-file-initialization.aspx
In addition, there are several good links in the comments to Tibor's blog entry, especially the links to Paul Randal's blog.
Tom -
I have SP Server 2010, and when I try to DELETE a rule within an existing Audience, "Property (Account Name) = domain/username", I get this error, "An error has occurred while accessing SQL database or system resources. If this
is the first time you have seen this message, please try again later. If this
problem persists, please contact your administrator." When I try to "MODIFY" the rule I get this error, "One or more values typed on this page are not valid. Check the text for the indicated fields."
The last time I checked it was working, I'm not aware of any new updates installed recently? I did a full Profile Synchronization as well, but still not working, please advise? -- EvenstarlineHi Sara,
First of all thank you very much for your prompt responses. Here are my comments to each of your suggestions below, and just to let you know I am using a Farm Admin account. I
was able to do this way after we upgraded from SP 2007 to SP 2010 as well. I would like to mention I'm not a SP expert, just been given the responsibility due to another person handling it just left, so apologize with some of
my novice questions below?
1. When I change the Operators to "Contains" or "Not Contains" get generates this error below.
Error generating in red towards top of the audience page..."One or more values typed on this page are not valid. Check the text for the indicated fields."
Error occurred where you enter your "Value"..."Could not resolve the user identity. Please re-enter the account name."
2. We have a 3-server-tier topology (SPWeb, SPDB, and SPFarm). Does the updates only apply to where the Central Admin is installed, which is the "SPFarm"? I checked all
3 servers, and NONE of the updates (KB2899494, KB2889845, and KB2883055) you'd mentioned are installed.
3. I'm new to IISRET, I need to be extra cautious of what I run in production, is this safe to run with no problem? What does it do? And How do I run it?
4. I'm also new to viewing the ULS log. I'd just downloaded a viewer for it. I'm assuming the only logs I need to be concern with viewing are within the SPAdmin (where Central
Admin is installed)? There's so many of them, what should I be looking for exactly?
Evenstarline -
Is it possible to save / extract data from a MS SQL database 2008 using lookout 6.2?
Now a days we are saving / extracting data in a excel spreadsheet, but we would like to do that using a database because it is better.You can use ODBC connection to work with SQL Server database.
Use SQLExec object to execute the SQL statement. Here is a KB about the SQL statement.
http://digital.ni.com/public.nsf/allkb/4ADEEA04CD24AE0B862565E20002A16F?OpenDocument
To write data to spreadsheet is more straightforward because Lookout has built-in spreadsheet object. But you need to write SQL statement by yourself to interact with other database.
To read the data back is the same way. Just use "select" SQL statement to query. You can use Datatable object to query.
The "Data Source" can be "DSN = data source name;". The data source name is configured in Control Panel->Administrative Tools->Data Sources(ODBC).
Ryan Shi
National Instruments -
Is it possible to migrate WebCenter Portal data from a SQL database to an Oracle database?
We have our WebCenter Portal applications set up using a SQL database. Now we're wanting to migrate to an Oracle database and I'm wondering if that is possible.
Yes it should be possible though i have not tried it myself. You basically export a file from mds ( xml) and import it into oracle db.
Thanks
manish -
Tried opening a file in library and it states can't open database with library name? It says Relaunch then will not open? and Blocks me completely from Aperture. I have to go to Finder to Rename it? I need this file how do I get it to open?
Aftershotz,
You're going to have to give a bit more information.
What do you mean by "opening a file in library?" There is no function of Aperture to open files -- you can open (switch) libraries.
You'll have to be more specific about error messages, too. Perhaps some screenshots would be useful to diagnose your problem. "Can't open database with library name" is not enough detail about what Aperture is really telling you.
nathan -
Is it possible using SQLite to collect data from an older SQL database?
Is it possible using SQLite to collect data from an older SQL database? Where can I find a possible answer. Thanks in advance.
There are 3rd-party tools (see comprehensive list at http://www.kenhamady.com/bookmarks.html) that provide extra pdf functionality on top of the pdf export from Crystal.
In the case of my Visual CUT software, you can use hidden formulas inside your Crystal report to generate form fields (pre-populated as well as empty) as part of the pdf export process.
hth,
ido -
Accidentally overwritten a sql database - Recover possible?
Hi there,
My wife uses a piece of software called salon Iris.
It uses an SQL database to store client info etc.
She accidentally overwrite her original database with a 'practice template' of clients.
This has overwritten her original.
I have no back up.
Can anyone help?
ThanksHi there,
My wife uses a piece of software called salon Iris.
It uses an SQL database to store client info etc.
She accidentally overwrite her original database with a 'practice template' of clients.
This has overwritten her original.
I have no back up.
Can anyone help?
Thanks
If it means restoring the database with the 'Practice Template' then hardly there is a way except some previous MDF or LDF files placed somewhere.
Restores operation overwrites everything including schema, data etc. so hard to rollback.
However, if it just a matter of overwriting a few tables (check how the overwriting was done. Was it through the User Interface or the application or through the SSMS or script etc.
I am not sure about Salon Iris app but many application who allows a template to be imported to overwrite the database operates on few master tables to change the status (accessibility) of the records. But it all depends and varies for application based
on their Technical design. As Erland has suggested you may contact the vendor for to understand this more clearly.
Keep Learning!! Regards Vishal Singh Please take a moment to mark this reply as answered if it solved your issue however if it doesn't but looks helpful to you or for someone else you may vote as helpful. This will enable the reply for other forum members
to benefit from. My Blogs: http://vishalhsingh.blogspot.com -
What is max capacity of Azure SQL database? 500GB? Possible to compress?
I have 1TB data on SQL Server VM and would like to migrate to Azure SQL.
Is 500GB really the max? Any compression available so that I can fit 1TB data?
Kenny_IHi,
on the contrary, this was announced a while back but for some reason the announcement was pulled out
it seems there's support for compression though, check:
http://thomaslarock.com/2014/06/microsoft-azure-sql-database-data-compression/
I don't think you can compress 1TB data to SQL Azure.
Request to provide your feedback
http://feedback.azure.com/forums/217321-sql-database/suggestions/403510-allow-data-compression-to-improve-size-performanc
Girish Prajwal
Maybe you are looking for
-
Error while transporting objects:Internal error during pvc call: Parameter
Dear all, We are facing the following error while transporting the individual configuration objects from our PI development system. Export failed: Internal error during pvc call: Parameter versionSpecifier or version has the invalid value null . Howe
-
How to access a url in file receiver CC with space in the folder name?
Hi PI 7.11 sp4: In a file receiver channel I would like to send the message to this folder: de-prod.dk\bu\something\something\PTI eventstanden\archive\" But I get this error message: "Target directory 'F:\usr\sap\XP7\DVEBMGS02\j2ee\cluster\server0\"\
-
Is it possible to get transparent background when exporting to PDF?
When exporting a document to PDF, Pages turns the background white instead of keeping it transparent. I need it to be transparent. Can anyone tell me what to do to fix this? When I print a document I use stationary that is in my printer. When I want
-
What's the benefit of Macbook??
I live in Laos , I use Macbook 2.0 Intel core 2 Duo I can't use iTunes store ..... i don't know what can't i do more???? What i can do with the Macbook????? please tell me should i change the laptop? Please explain how should i do to use Macbook for
-
IPhoto 9 won't save changes to file
After i'm done editing a photo and click the done button, everything is fine if I view the photos inside iPhoto, BUT if I got to the actual location on my HDD where the file is being held, none of the changes have been applied. How can I force iPhoto