SQL Server question
I have a question regarding the use of SQL Server instead of
Access for your database in RH Server 7.
Is it possible to point multiple help systems (servers) to
one SQL Server location? Our network admin is doing this currently,
and I recently noticed that the 2 help systems that are out there
are merging their reporting information. So if you log into either
Web admin you see the same results and statistics each place. He
says that you should be able to point the different servers to the
same SQL Server without this happening, but he wants me to look
into further. Any help would be greatly appreciated.
I have been testing this for the past couple of days. Our doc
group wants to keep the reporting stats for the different project
separate. Here is a doc that discusses that: <
http://blogs.adobe.com/techcomm/2007/07/configuring_adobe_robohelp_ser.html>
However, I have foudn the doc to be incomplete. I have two
projects in two different servers (websites) pointing to the same
db (SQL Server). But the reporting info is still getting mixed. So
I think the key is in addition to the directions in the doc, to
point the individual websites to separate dbs (can be on the same
SQL Server).
I have not tested this yet, but it should work. Just not sure
about the additional license issues that may have to be
addressed.
Similar Messages
-
Upgrading SQL Server Questions
Hi everyone.
I've never upgraded SQL Server before, so I'm quite nervous (Maybe unnecessarily so?)...
When I started development of the software we use here, another product required that we use SQL Server 2000. That is no longer the case or an issue, so I wanted to upgrade SQL Server to a current version (That supports Windows Server 2003). From
my research, it looks like I would be able to upgrade to SQL Server 2008.
I do have a few concerns though.
1) Will my database function the same as it currently does? Will my SQL Statements still work the same? I haven't read anywhere where people were complaining of breaking changes, but I wanted to ask. I would of course backup the database,
but this database gets a lot of use, so I want to reduce headaches as best I can.
2) How do I upgrade SQL Server? I realize of course that this will be viewed as a ridiculously stupid question, but I genuinely have no idea and certainly don't want to botch that...
3) Will this automatically upgrade all databases on the current server?
4) Will I need to make any changes within my application, or will the upgrade be seamless from that aspect?
5) Would I need to purchase anything for the upgrade? I already have SQL Server as part of Visual Studio 2013...
I really appreciate the help.Hello,
1. In most cases normal upgrade works fine but if you are using a feature in you application that is not present in 2008 code might function differently.So testing is your best bet.In you case side by side upgrade would be best one
2. Obtain new windows box and install SQL server 2008 on it.Migrate database from sql server 2000 to 2008 thorugh backup restore mechanism.Migrate logins and jobs as well by scripting it out and running it on 2008.RK on jobs and create script
How to transfer logins
Now test you application functionalities against this new database.See all works as expected if not change code accordingly.After you are confirmed that no app issue is there take full and trn saction log backup and restore it on 2008 and make it live
dont decomission old 2000 let it be ther for 15 -20 days just in case.
3. After you restore 2000 database backup on 2008 it will upgrade database automatically.You just need to change compatibility level to 100.
alter database db_name set compatibility_level =100
after this rebuild indexes and update stats for all tables and all databases.
4. depends on issue if you face any speak to developer
5 You need to have full version of SQL server installable.If you are planning to use express you can download from net.For standard /enterprise you need to have valid license
Edit: As Olaf mentioned you need to run upgrade advisor as well ,even though it is required for inplace upgrade but that would be helpful, Still I would suggest for side by side approach
Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers -
Hi,
I am looking for inputs in tuning stored procedure using sql server 2008. l am new to performance tuning in sql,plsql and oracle. currently facing issue in stored procedure - need to increase the performance by code optmization/filtering the records using where clause in larger table., the requirement is Stored procedure generate Audit Report which is accessed by approx. 10 Admin Users typically 2-3 times a day by each Admin users.
It has got CTE ( common table expression ) which is referred 2 time within SP. This CTE is very big and fetches records from several tables without where clause. This causes several records to be fetched from DB and then needed processing. This stored procedure is running in pre prod server which has 6gb of memory and built on virtual server and the same proc ran good in prod server which has 64gb of ram with physical server (40sec). and the execution time in pre prod is 1min 9seconds which needs to be reduced upto 10secs or so will be the solution. and also the exec time differs from time to time. sometimes it is 50sec and sometimes 1min 9seconds..
Pl provide what is the best option/practise to use where clause to filter the records and tool to be used to tune the procedure like execution plan, sql profiler?? I am using toad for sqlserver 5.7. Here I see execution plan tab available while running the SP. but when i run it throws an error. Pl help and provide inputs.
Thanks,
VijiYou've asked a SQL Server question in an Oracle forum. I'm expecting that this will get locked momentarily when a moderator drops by.
Microsoft has its own forums for SQL Server, you'll have more luck over there. When you do go there, however, you'll almost certainly get more help if you can pare down the problem (or at least better explain what your code is doing). Very few people want to read hundreds of lines of code, guess what's it's supposed to do, guess what is slow, and then guess at how to improve things. Posting query plans, the results of profiling, cutting out any code that is unnecessary to the performance problem, etc. will get you much better answers.
Justin -
Need help converting Oracle PIVOT script to SQL Server
I hope it is not inappropriate to ask for SQL Server question in a .NET forum. I can not understand SQl 2k5+ syntax for pivoting. I am pivoting on company name and storenbr in the following. Thanks for any help.
WITH dummydata AS
SELECT 'Store1' AS storenbr, 2 AS period, 1 AS weeknbr, '40' AS PLU, 'tomato' as descrip, 16 AS used, 100 AS wasted from dual UNION ALL
SELECT 'Store1' AS storenbr, 2 AS period, 1 AS weeknbr, '50' AS PLU, 'bacon' as descrip, 87 AS used, 100 AS wasted from dual UNION ALL
SELECT 'Store1' AS storenbr, 2 AS period, 2 AS weeknbr, '40' AS PLU, 'tomato' as descrip, 26 AS used, 100 AS wasted from dual UNION ALL
SELECT 'Store1' AS storenbr, 2 AS period, 2 AS weeknbr, '50' AS PLU, 'bacon' as descrip, 97 AS used, 100 AS wasted from dual UNION ALL
SELECT 'Store2' AS storenbr, 2 AS period, 1 AS weeknbr, '40' AS PLU, 'tomato' as descrip, 16 AS used, 100 AS wasted from dual UNION ALL
SELECT 'Store2' AS storenbr, 2 AS period, 1 AS weeknbr, '50' AS PLU, 'bacon' as descrip, 87 AS used, 100 AS wasted from dual UNION ALL
SELECT 'Store2' AS storenbr, 2 AS period, 2 AS weeknbr, '40' AS PLU, 'tomato' as descrip, 26 AS used, 100 AS wasted from dual UNION ALL
SELECT 'Store2' AS storenbr, 2 AS period, 2 AS weeknbr, '50' AS PLU, 'bacon' as descrip, 97 AS used, 100 AS wasted from dual UNION ALL
SELECT 'Store3' AS storenbr, 2 AS period, 1 AS weeknbr, '40' AS PLU, 'tomato' as descrip, 18 AS used, 100 AS wasted from dual UNION ALL
SELECT 'Store3' AS storenbr, 2 AS period, 1 AS weeknbr, '50' AS PLU, 'bacon' as descrip, 89 AS used, 100 AS wasted from dual UNION ALL
SELECT 'Store3' AS storenbr, 2 AS period, 2 AS weeknbr, '40' AS PLU, 'tomato' as descrip, 28 AS used, 100 AS wasted from dual UNION ALL
SELECT 'Store3' AS storenbr, 2 AS period, 2 AS weeknbr, '50' AS PLU, 'bacon' as descrip, 99 AS used, 100 AS wasted from dual
, store_details as
SELECT 'Store3' AS storenbr, 'D-Bingham' as districtname, 'R-15 James' as regionname, 'C-Atlantic' as companyname from dual UNION ALL
SELECT 'Store2' AS storenbr, 'D-Dunley' as districtname, 'R-15 James' as regionname, 'C-Atlantic' as companyname from dual UNION ALL
SELECT 'Store1' AS storenbr, 'D-Murdoc' as districtname, 'R-16 Reynolds' as regionname, 'C-Soutn' as companyname from dual
, pivoted as
select storenbr
, plu
, max(descrip) as Descrip
, max(decode(dd.weeknbr, 1, used , 0)) as Week1used
, max(decode(dd.weeknbr, 1, wasted , 0)) as Week1wasted
, max(decode(dd.weeknbr, 2, used , 0)) as Week2used
, max(decode(dd.weeknbr, 2, wasted , 0)) as Week2wasted
, max(decode(dd.weeknbr, 3, used , 0)) as Week3used
, max(decode(dd.weeknbr, 3, wasted , 0)) as Week3wasted
, max(decode(dd.weeknbr, 4, used , 0)) as Week4used
, max(decode(dd.weeknbr, 4, wasted , 0)) as Week4wasted
, max(decode(dd.weeknbr, 5, used , 0)) as Week5used
, max(decode(dd.weeknbr, 5, wasted , 0)) as Week5wasted
from dummydata dd
group by storenbr, plu
order by storenbr, plu
select decode(grouping(stores.storenbr), 0, stores.storenbr, decode(grouping(districtname), 0, districtname, decode(grouping(regionname), 0, regionname, decode(grouping(companyname), 0, companyname, 'GRAND')))) as storenbr
, decode(grouping(descrip), 0, descrip, 'TOTAL') as descrip
--== I substited Description for clarity
, sum(Week1used) as Week1used
, sum(Week1wasted) as Week1wasted
, sum(Week2used) as Week2used
, sum(Week2wasted) as Week2wasted
, sum(Week3used) as Week3used
, sum(Week3wasted) as Week3wasted
, sum(Week4used) as Week4used
, sum(Week4wasted) as Week4wasted
, sum(Week5used) as Week5used
, sum(Week5wasted) as Week5wasted
, companyname
from pivoted pvt
inner join store_details stores on pvt.storenbr = stores.storenbr
group by companyname
, rollup ( regionname
, districtname
, stores.storenbr
, descrip
;New output:
STORENBR DESCRIP WEEK1USED WEEK1WASTED WEEK2USED WEEK2WASTED WEEK3USED WEEK3WASTED WEEK4USED WEEK4WASTED WEEK5USED WEEK5WASTED COMPANYNAME
Store1 bacon 87 100 97 100 0 0 0 0 0 0 C-Soutn
Store1 tomato 16 100 26 100 0 0 0 0 0 0 C-Soutn
Store1 TOTAL 103 200 123 200 0 0 0 0 0 0 C-Soutn
D-Murdoc TOTAL 103 200 123 200 0 0 0 0 0 0 C-Soutn
R-16 Reynolds TOTAL 103 200 123 200 0 0 0 0 0 0 C-Soutn
C-Soutn TOTAL 103 200 123 200 0 0 0 0 0 0 C-Soutn
Store2 bacon 87 100 97 100 0 0 0 0 0 0 C-Atlantic
Store2 tomato 16 100 26 100 0 0 0 0 0 0 C-Atlantic
Store2 TOTAL 103 200 123 200 0 0 0 0 0 0 C-Atlantic
D-Dunley TOTAL 103 200 123 200 0 0 0 0 0 0 C-Atlantic
Store3 bacon 89 100 99 100 0 0 0 0 0 0 C-Atlantic
Store3 tomato 18 100 28 100 0 0 0 0 0 0 C-Atlantic
Store3 TOTAL 107 200 127 200 0 0 0 0 0 0 C-Atlantic
D-Bingham TOTAL 107 200 127 200 0 0 0 0 0 0 C-Atlantic
R-15 James TOTAL 210 400 250 400 0 0 0 0 0 0 C-Atlantic
C-Atlantic TOTAL 210 400 250 400 0 0 0 0 0 0 C-AtlanticArthurZ thank you, it was just a minor bug:
(DT_DATE)(SUBSTRING("20001211", 1,4) + "-" + SUBSTRING("20001211",
5,2) + "-" + SUBSTRING("20001211",
7,2) )
Working fine now :) thanks!
Sorry if I caused it, but glad you found it
Arthur
MyBlog
Twitter -
Hello all-
This is much more a SQL Server question than a ColdFusion
question- but I'm not using Transact SQL, so the SQL Server
resources aren't really telling me anything I need to know.
I'm using FREETEXT for full-text searching on SQL Server
2000. (CF8 on Windows) Currently this gives me an 'OR' search.
So if I put in 3 words such as: 'web policy manual' the
search will come back with anything that contains ANY of those
words.
Does anyone know how to change that to an AND search that
will return only the documents that contain all three?
Thanks for any help-
KarlI did end up using CONTAINS, but it took me a few tries to
get it right.
Contains with an 'OR' is easy, but contains with 'AND' means
that each word in your search criteria needs to be in a different
function. And none of those functions can fail, or the whole thing
will fail.
So first I had to clean up the search critiera, then do the
search itself. I have attached code samples below.
Thanks for the suggestions- -
Compare and Sync two Sql server Databases using msDeploy
Hi,
I have two servers on each server I have sql server 2005 with the same database instance, So I want to use msdeploy to compare between two databases and then sync new rows,tables and any database object from first server to second one.
I used dbFullSql provider but dbFullSql provider used to sync for first Time.
Please if there any idea.
Thanks and Regards.
mhd
Hi Mohammed Oda,
Could you explain what your demand, i am not quite understand your description, if you are asking the SQL question please post in SQL forum.
SQL Server question please post to theSQL Server forum.
SQL Server forum:
http://social.technet.microsoft.com/Forums/sqlserver/en-us/home?category=sqlserver
Thanks for your understanding and support.
We
are trying to better understand customer views on social support experience, so your participation in this
interview project would be greatly appreciated if you have time.
Thanks for helping make community forums a great place. -
General question on SQL Server 2000 to Oracle 10g
Hello all,
I just have a general question on migration from SQL Server 2000 to Oracle 10g using SQL Developer.
How does it migrate Users with proper privileges from SQL Server to Oracle? Follow the interface steps? Or should the users be created on destination Oracle side?
Thank you.Hi,
It depends which type of migration you are making.
For a 'Standard' migration when you migrate data a 'create user' statement is created as part of the migration and you will see this in the generated code.
If you are using the 'Quick' migration option then you need to create the Oracle user or use an existing user to receive the data.
Your best option is to review the documentation available from -
http://www.oracle.com/technology/tech/migration//workbench/index_sqldev_omwb.html
or directly from -
http://download.oracle.com/docs/cd/E12151_01/index.htm
and then get back with specific questions if this does not give you the information you need.
Review the chapter -
2. Migrating Third-Party Databases
in -
Oracle® Database SQL Developer User’s Guide Release 1.5
Regards,
Mike -
SQL server service accounts question
We created a test SQL environment using a Technet evaluation copy of Windows Server 2012 along with an evaluation copy of SQL2012. After testing, everything is working as planned so were going to enter the product keys for both Windows Server and SQL 2012.
My question is that once we have our Server licensed we’re going to start a new domain and recreate all the user accounts but I installed SQL using a local user account I created called ”sqladmin”. Once Server 2012 is the DC in the new domain will I need to
change all the service accounts for SQL in order for it to function or can I still use the local “sqladmin” user account? If I can re-use that local account are there any downside to that? What’s the best practice in this scenarioOnce Server 2012 is the DC in the new domain will I need to change all the service accounts for SQL in order for it to function or can I still use the local “sqladmin” user account? If I can re-use that local account are there any downside to that?
What’s the best practice in this scenario
Hi,
You can use your sqladmin account but that wont be a good security practice. You should always follow principal of least privilege and should run SQL server with domain account having least privilege.Below link will help you in this
Configure SQL server account and services
Please mark this reply as the answer or vote as helpful, as appropriate, to make it useful for other readers
My TechNet Wiki Articles -
SQL Server 2012 Failover Cluster configuration questions
Hi,
I have few questions on , SQL Server 2012 Failover cluserting pleasse provide suggestions:
1) In SQL Server 2012 is there a configuration for active / passive Failover Cluster installation? If so how is it done? if you could provide any links or articles that would help.
OR
Is this been replaced by Always ON Availability Groups?
2) Also in our environment we have done active/active installation but at a time my understanding is only node has the ownership to the shared storage versus both the nodes, is that correct? If not please provide an explanation?
Any additional information would be valuable in clearing my doubts?
Thank youy
Malini=Hi malinisethi,
If you install SQL Server in a cluster and configure Active-Passive cluster. In the first node, select “New SQL Server Failover Cluster installation” option , when we are installing Active-Passive cluster, we have to specify one virtual/network name. (Note:
For Active-Active clustering you have specify different network names as per the number of nodes). on the other nodes is similar to installing on the first node except that we have select the Add Node to a SQL Server failover cluster option from the initial
menu. For more information, there is a similar issue about SQL Server 2008 Active-Passive/Active-Active cluster installation, you can review the following article.
http://sqldbpool.com/2009/10/07/sql-server-2008-active-passive-cluster-installation/
About Active/Active SQL Cluster, two clustered SQL Server instance are created in different nodes. Then apply Active /Active configuration of both instance. There is an example about creating an Active/Active SQL Cluster using Hyper-V. you can review the
following article.
http://blogs.msdn.com/b/momalek/archive/2012/04/11/creating-an-active-active-sql-cluster-using-hyper-v-part2-the-clustered-instances.aspx
Regards,
Sofiya Li
Sofiya Li
TechNet Community Support -
Question about updating SQL Server on failover cluster
Hi all,
I would like to better understand the update process of SQL Server (2008 r2) in a failover cluster environment.
In our cluster we have 4 instances of SQL running, where two of them I am able to at anytime stop the instance and update it.
The question is... Applying the latest update, will update forcibly all instances installed on that node, or do I have the ability to choose which instance I want to update?
This way, I could "test" the update process in those two SQL Instances, as described in http://support.microsoft.com/kb/958734 and after finishing I would update the remaining instances.
Please let me know.
Thanks in advance.
Nuno SilvaHi Nuno,
It's a failover cluster issue, I moved it to SQL Server High Availability and Disaster Recovery. So that you can get better help.
Regards,
Charlie Liao
TechNet Community Support -
MVA SQL Server Query Assessment question
Hi Guys
I was doing a course on MVA, Querying Microsoft SQL Server Quick Start. This question came up in the assessment:
True or False: You use the INTERSECT operator to combine results from two SELECT statements. Only rows that appear in both results sets are displayed.
I answered it as TRUE but it marked it wrong.
Am I not right??
ThanksHi,
Choose yourself :-)
http://technet.microsoft.com/en-us/library/ms188055.aspx
[Personal Site] [Blog] [Facebook] -
Question SQL Server in AIX Environment
Installing SQL Server 2008 on AIX platform thereby trying to migrate the DB from DB2 on aix to SQL server.
The application programming is done on ZOS in COBOL programming language, hence I am looking for some information in this case whether any drivers are available to access the data directly in the application program or do we need to utilize any third party
software for this integration.You cant install SQL Server on any unix platform. It work only on windows.
http://stackoverflow.com/questions/2220191/is-there-some-way-to-access-sql-server-from-z-os-mainframe-and-have-the-result-i -
SQL Server JDBC integrated security question
I'm assuming that the only way to create a connection to SQL Server using the JDBC driver is using IntegratedSecurity=false and not IntegrateSecurity=true? I can see the arguments for having it only work with false, but I just wanted to make sure so I can clear any questions up regarding security with our client's DBA. Thanks.
Hi Matt,
It is possible to use integrated security with ODI, you need to have the JDBC driver and the sqljdbc_auth.dll file in your drivers directory.
Your JDBC url will look like this: jdbc:sqlserver://localhost:1113;integratedSecurity=true
It is detailed in a note on Metalink (568070.1), here is an extract:
To implement the solution:
1. Copy the "sqljdbc_auth.dll" file into ODI "/drivers" Folder on the computer where the JDBC driver is installed.
2. In ODI "/bin/odiparams.bat" configuration file, set the "java.libary.path" system property to specify the directory of the "sqljdbc_auth.dll" file, as follows:
set ODI_ADDITIONAL_JAVA_OPTIONS="-Djava.library.path=c:\oracle\oracledi\drivers" or, if ODI_ADDITIONAL_JAVA_OPTIONS has already been set, add "-Djava.library.path=..." to the existing string, as follows:
set ODI_ADDITIONAL_JAVA_OPTIONS="-Duser.language=en" "-Duser.country=US"
"-Djava.library.path=c:\oracle\oracledi\drivers"
3. If using an Agent started with "agent.bat" or "agentscheduler.bat" commands, the Agent should be stopped and restarted (in order to take into account the new Java settings).
4. If using an Agent started as Windows Service, then:
Stop the Agent Service.
Remove the Agent Service with "agentservice -r" command.
Edit the "snpsagent.conf" file (from ODI "/tools/wrapper/conf" Directory).
Add the Java Library Path to specify the Directory of "sqljdbc_auth.dll" File, as
follows:
wrapper.java.library.path.2=c:\oracle\oracledi\drivers
Recreate the Windows Service with "agentservice -i" command.
Start the Windows Service.
Thanks,
Julien -
SQL Server Procedures Questions
Hello,
I needed some simple help in SQL Server, given below are my two questions.
I am looking at making a SQL Server Procedure which uses cursors to detect some data entry
mistakes.
1) I have a query joining two or three tables and returning me a list of rows. I would like to compare the Name column in this list using a like operator and report back any names which are similar. How can this be done ? If possible please send me a brief
skeletal code to do the same.
2) I am using a query to join names of employees with languages they speak. The query works fine but for employees who speak more than 1 language, the record gets repeated with a new line for every new language they speak, instead of doing this, I would
like to concatenate their languages in 1 column and report back 1 row per employee. Is this possible ?
If yes please send me the brief skeletal code to do this on [email protected]
Thanks
Irfan>> If yes please send me the brief skeletal code to do this on [email protected]
Good day Irfan
This is not a paid supporting center, where you get private support, by commercial company, but a public forum where communities members helps each other. Public posts, answers, and discussions have a huge advantage! Other people might learn from the thread
as well.
>> I have a query joining two or three...
Please check Tom
Cooper's answer, and if this is not what you are looking for, then please post more information and less stories (I mean codes). Please show us the query instead of describe it. the code describe it better :-) Moreover, pls post DDL+DML
Ronen Ariely
[Personal Site] [Blog] [Facebook] -
Licensing question for AD enterprise with new SQL Server
Hi!
We have Server 2008 R2 STD where our AD is located and it has enough User CAL's. Additionally we have Terminal server with TS licenses.
Now we're purchasing a Server 2012 where we plan to install SQL Server 2012 STD where we will install our third party program and this program is going to be used through Terminal server.
Now the question is do I only need SQL CAL's or will I have to get both SQL CAL's AND User CAL's for the new server? I'm thinking AD servers User CAL's is enough for the whole enterprise, but I'm not 100% sure and need help with this!
Thanks!Licensing questions should be directed to trained Microsoft licensing specialists instead of a technical forum.
www.microsoft.com/licensing.
That said, SQL CALs and operating system CALs are sold separately. Talk with the vendor from whom you are purchasing your licenses. They should be able to help you sort out the CAL questions.
. : | : . : | : . tim
Maybe you are looking for
-
Change terms of payment and credit limit
Hello, i need to change the terms of payment of a customer as well as his credit limit. CUSTOMER - terms of payment KNB1-ZTERM KNVV-ZTERM CUSTOMER - credit limit KNKA-KLIMG KNKA-KLIME KNKK-KNKK any idea of how to do this (bapi or FM) besides of doin
-
How do I send a pdf that was converted to word as an email?
I have an important document that I have converted from a pdf to a word document, but I'm not sure how to send it as an email? Please help!! Thanks much!! Savannah Gal
-
Exporting to Flash - my design is mumble jumble
I have designed webpages in InDesign and when I export it to Flash - it is all over the place: fonts are huge and not in the right places . . .everything is out of whack! I changed the document to RGB ... what am I missing?? Forrest
-
Hyperlinks and External SWF Files
I am building a site for the company I work for and within the main flash CS3 document for the site I have a portfolio gallery with 8 sections. I created a flash file for each category and made a swf file where I loaded them in my main flash document
-
Hi all I have a 2010 model 13" Mac Book Pro and a no-name mini display port to HDMI cable adaptor. I could understand if there was no audio at all, even though the adaptor claims to carry the audio. However the behaviour I do see is this: The video o