Is the query analyzer part of sql server database?
Hey all,
I have installed SQL Server 2005 on windows 2003 server. It did not install the query analyzer.
Is the query analyzer part of SQL Server or do we need to install it separately?
Thank you,
Bye.
Why not ask it in a Microsoft forum ?
Nicolas.
Similar Messages
-
Is the query analyzer part of SQL Server?
Hey all,
I have installed SQL Server 2005 on windows 2003 server. It did not install the query analyzer.
Is the query analyzer part of SQL Server or do we need to install it separately?
Thank you,
Bye.Is there something about this question that is related to Oracle? It would appear that you'd want to ask this over in an appropriate Microsoft SQL Server forum...
Justin -
RickTextbox - getting and saving the text to and from SQL server database
I have no trouble saving the data to an SQL Server database. Here is a sample of what is saved.
{\rtf1\ansi\ansicpg1252\deff0\deflang1033{\fonttbl{\f0\fnil\fcharset0 Microsoft Sans Serif;}}
\viewkind4\uc1\pard\f0\fs17 testing the\par
rich\par
text box\par
when I retrieve the text from the database, I end up with exactly what is shown above. I am retrieving the text with a SqlDataReader. here is the code that I am using;
while (sqlDataReader.Read())
string special_Instructions = ""; //first I was using this line but both lines have the same result // special_Instructions = sqlDataReader["Special_Instructions"].ToString();
special_Instructions = sqlDataReader.GetString(5);
special_InstructionsRichTextBox.Rtf = special_Instructions;
any guidance or help will be greatly appreciated.
daveMichael,
Lets begin with, 'Thanks for your guidance'. With your last run of questions, I was able to figure it out.
Here is what I learned, (by the way, this is in Winforms):
When I checked the properties of the RichTextBox control, I saw and then remembered that the control was bound to the form. First thing I did was comment out the code I was using (above) to fill the control and tested the program. I actually
received the same issue with the contents of the control as before.
I then dropped a new RichTextBox control from the tool box to my form and positioned it next to the original control. I un commented the above code and used it to fill the new
richTextBox1.Rtf and ran the program. The original control that was bound to the form still gave the incorrect result but the new control worked perfectly.
I hope this helps others and Thanks again for your guidance. If there is anything else you think could be added to this reply please let me know.
dave -
Connecting an application to a sql server database
I want to make a login for an application. I need to check the username and password from a sql server database. I'm really at a total loss here. Can anyone tell me how to write the part concerning the connection? Thanks
Hi,
Please find below the code to connect to Sql Server
database.
You need to have the sqlserver server driver jar
files(msbase.jar,mssqlserver.jar,msutil.jar)
in your classpath
import java.sql.*;
* Microsoft SQL Server JDBC test program
public class Test {
public static void main (String args[]) throws
s Exception {
// Get connection
DriverManager.registerDriver(new
com.microsoft.jdbc.sqlserver.SQLServerDriver());
Connection connection =
n = DriverManager.getConnection(
"jdbc:microsoft:sqlserver://<Host>:1433",<"UID>","<PWD
if (connection != null) {
System.out.println();
System.out.println("Successfully connected");
}-AmolThank you but would you please tell all the part I need to connect and to execute any statement? I hope my words are clear because I'm in such a mess when it comes to anything related to database. Also, could you please tell me where do I get the sqlserver jar files? Thank you. -
How to connect a PDF form to SQL server database through web service?
Hi,
I'm new to LiveCycle designer. I have designed a PDF form in LC designer ES2, which suppose to take a personnel number and retrieve the personnel information from a SQL server database. Currently its working fine with XML data and a search button, but I need to securly connect to a database through web service. I know how to connect to a wsdl file through designer. What I need is a wsdl file to connect the form to database. For this purpose, is there any WSDL code to use as the web service?
I really appreciate your help and advice.Hi,
I'm new to LiveCycle designer. I have designed a PDF form in LC designer ES2, which suppose to take a personnel number and retrieve the personnel information from a SQL server database. Currently its working fine with XML data and a search button, but I need to securly connect to a database through web service. I know how to connect to a wsdl file through designer. What I need is a wsdl file to connect the form to database. For this purpose, is there any WSDL code to use as the web service?
I really appreciate your help and advice. -
How to calculate the HFM Cube size in SQL Server-2005
Hi
How to calculate the HFM Cube size in SQL Server-2005 ?
Below query used for Oracle. Then what is query for SQL Server?
SQL> select sum(bytes/1024/1024) from dba_segments where segment_name like 'FINANCIAL_%' and owner='HFM';
SUM(BYTES/1024/1024)
SQL> select sum(bytes/1024/1024) from dba_segments where segment_name like 'HSV FINANCIAL%' and owner='HFM';
SUM(BYTES/1024/1024)
Regards
SmileeWhat is your objective? The subcube in HFM is a concept which applies to the application tier - not so much to the database tier. The size of the subcube is the unique number of data strips (data values for January - December inclusive, for example) for the given entity, currency triplet or Parent.Child node. You have to account for parent accounts and customs which don't exist in the database but are generated in RAM in the application tier.
So, if your objective is to find the largest subcubes, you could do this by querying the database and counting the number of records per entity/value (DCE tables) or parent.child entity combination (DCN tables). I'm not versed in SQL, but I think the script below would just tell you the schema size and not the subcube sizes.
Check out Accelatis.com for a third party software product that can do this for you. The feature is called the Subcube Analyzer and was written by the same team that wrote HFM, so they ought to know how this works :-)
--chris -
How to delete/drop all the tables from SQL Server Database without using Enterprise Manager?
I tried using DROP Tables, Truncate Database, Delete and many more but it is not working. I want to delete all tables using Query Analyzer, i.e. through SQL Query.
Please help me out in this concern.
Nishith ShahInformative thread indeed. Wish I saw it early enough. Managed to come up with the code below before I saw this thread.
declare @TTName Table
(TableSchemaTableName
varchar
(500),
[status] int
default 0);
with AvailableTables
(TableSchemaTableName)
as
(select
QUOTENAME(TABLE_SCHEMA)
+
+
QUOTENAME(TABLE_NAME)
from
INFORMATION_SCHEMA.TABLES)
insert into @TTName
(TableSchemaTableName)
select *
from AvailableTables
declare @TableSchemaTableName varchar
(500)
declare @sqlstatement nvarchar
(1000)
while 1=1
begin
set @sqlstatement
=
'DROP TABLE '
+ @TableSchemaTableName
exec
sp_executeSQL
@sqlstatement
print
'Dropped Table : '
+ @TableSchemaTableName
update @TTName
set [status]
= 1
where TableSchemaTableName
= @TableSchemaTableName
if
(select
count([Status])
from @TTName
where [Status]
= 0)
= 0
break
end -
How can U decrease the Log Size in MS-SQL server?
Hello friends,
I am in Big Trouble. I have a Problem.we are Using MS-SQL server 8.00.924. The Database Log size is almost Full.But BackUps are not Done successfully ,,How to Shink the Log file,, Any body pls help me I will give more Points.
Regards,
BalaramHi Balaram,
Please see the link and scripts which is given hereunder.
http://support.microsoft.com/kb/873235
You can check this method also.
Method 1 Delete the Log (LDF) File
Although this method is simple, it is not supported by Microsoft®. Additionally, it may not work for all systems. Follow these steps to try the simple method on your system.
Ensure that no users are logged into the database.
Open Query Analyzer or another program to execute SQL scripts. Ensure that dsdbase is not selected in the drop-down DB list.
Open and run the script DETACH.sql. This script detaches the DataLyzer® database from the SQL server database.
Make a backup copy of the DSdbase_Data.MDF and DSdbase_Log files.
Rename the DSdbase_log file to another name, for instance backup_DSdbase_log.
Open and run the script ATTACHMDF.sql. This script re-attaches the DataLyzer® database to the SQL database without attaching the log file. NOTE: If your database is not stored in the location c:mssql7data change the SQL script to reflect the location of your DSdbase file.
If the script runs successfully, a new DSdbase_Log file will automatically be created to the original size specified when creating the database. It is suggested that users keep the backup copies made of their database and log files for several days to ensure an available backup if anything happens to the new log file.
If the script does not run successfully, method 1 will not work for your current DataLyzer® Spectrum database. This is because your databases structure is dependent on the logfile. In this case, re-name the original log file back to DSdbase_log. Run the script ATTACH.sql and again change the file location to the location of your DataLyzer® database, if necessary. When the database is successfully re-attached, try using method 2 to shrink the log file.
Method 2 Truncate and Shrink the Log (LDF) File
Although this method of shrinking the log file is more complicated, it is supported by Microsoft®, and it will work for almost all systems. Follow these steps:
Ensure no users are logged into the database.
Open Query Analyzer or another program to execute SQL scripts. Ensure that dsdbase is not selected in the drop-down DB list.
If you have already tried method 1, or if you have a current backup of you database and log file, skip to step 7
Open and run the script DETACH.sql. This script detaches the DataLyzer® database from the SQL server database.
Make a backup copy of the DSdbase_Data.MDF and DSdbase_Log files.
Open and run the script ATTACHMDF.sql. This script re-attaches the DataLyzer® database to the SQL database. NOTE: If your database is not stored in the location c:mssql7data, change the SQL script to reflect the location of your DSdbase file.
Select dsdbase from the drop down DB list in the program you are using to execute the SQL scripts.
8. Run VIEW2LDF.sql. Below is an excerpt similar to what will be displayed on your screen: FileId FileSize StartOffset FSeqNo Status Parity CreateTime
2 1245184 819 1292 0 64 1999-12-15 10:25:13.597
2 1245184 1253376 1225 0 128 1999-11-19 09:12:57.743
2 1245184 2498560 1224 0 128 1999-11-19 09:12:23.82
2 1499136 3743744 1318 2 64 1999-12-15 10:25:36.880
Locate the 2 in the status column. The location of the 2 determines where the active portion of the log is.
If the 2 is in the bottom half of the log, open and run the SQL script MOVE2LOOP.sql. This script is an infinite loop used to move the active portion of the log.
Re-Run the VIEW2LDF.sql script to make sure that the 2 is now located in the first half of the script.
Run the script SHRINKLOG.sql to reduce the size of the database.
Run the script VIEW2LDF.sql to view the new status of the log file. You should notice that the number of lines is significantly smaller than it originally was.
If you wish to further reduce the size of the database, repeat steps 8 through 13.
Text Context of SQL Scripts
ATTACHMDF.sql
sp_attach_db @dbname=N'dsdbase', @filename1=N'c:mssql7datadsdbase_data.mdf'
ATTACH.sql
sp_attach_db @dbname=N'dsdbase', @filename1=N'c:mssql7datadsdbase_data.mdf',
@filename2=N'c:mssql7datadsdbase_log.ldf'
Detach.sql
sp_detach_db dsdbase
MOVE2LOOP.sql
USE DSDBASE
GO
CREATE TABLE VIRTUAL_LOG_FILE_WRAPPER (CHAR1 CHAR(4000))
GO
DECLARE @I INT
SELECT @I = 0
WHILE (1=1)
BEGIN
WHILE (@I < 100)
BEGIN
INSERT VIRTUAL_LOG_FILE_WRAPPER VALUES ('A')
SELECT @I = @I + 1
END
TRUNCATE TABLE VIRTUAL_LOG_FILE_WRAPPER
BACKUP LOG DSDBASE WITH TRUNCATE_ONLY
END
SHRINKLOG.sql
DBCC SHRINKFILE (DSDBASE_LOG, TRUNCATEONLY)
BACKUP LOG DSDBASE WITH TRUNCATE_ONLY
VIEW2LDF.sql
DBCC LOGINFO(DSDBASE)
Regards,
Anil -
Hi,
I want to create a visual webpart which will read data from excel sheet and import it in to sql server database.(using sharepoint development)
I want to do it using visual webpart.
Please help to solve the issue.
Thanks in advance!
Regards
RajniHi Rajni,
Microsoft.Office.Interop.Excel assembly provides class to read excel file data, in your web part solution, reference the assembly, and following blog contains samples about how to read the excel file data,
and import it to SQL database.
1.Create a Visual Web Part Project:Create
Visual Web Parts in SharePoint 2010
2.Read the excel workbook by using SPFile class:
http://alancejacob.blogspot.in/2012/06/read-data-from-excel-file-and-insert-in.html
http://stackoverflow.com/questions/14496608/read-excel-file-stored-in-sharepoint-document-library
3.Export the excel workbook to SQL Server:
http://www.c-sharpcorner.com/UploadFile/99bb20/import-excel-data-to-sql-server-in-Asp-Net/
Best Regards,
Eric
Eric Tao
TechNet Community Support -
I want to query sql server database from oracle
i want to query sql server database from oracle
can anyone help me in this regardFirst of all - you are in the wrong forum.
Look either for the Database general or search for Transparant / Heterogenous Gateways.
cu
Andreas -
Extracting data of data type 'real' from the sql server database
Hi,
In my job, my source is a sql server database.
I am connecting to the source sql server database using ODBC (sqlserver driver) in the datastore.
In one of my source tables i have a field of data type real.If one of the value is 3.45678 , data services brings it in as 3.456780, which is OK, but if the real value is 4.7 in source, data services brings it as 4.699997. I want it to be brought in as 4.700000 and not as 4.699997(i.e it is expanding upto 6 digits after the decimal point).
Is this a default behavior of how data services reads the 'real' data types or is it because of how the ODBC sql server driver reads the data ?
Is the above problem connected to an option in the DS.config file called
LAZY_DECIMAL_CONVERSION which is set as true in our file.Should i set as false and will it solve this problem?
Thanks in Advance.I tried reproducing your case, I read a value with real datatype from sql server DB. For me the values are coming fine, 4.7 is read as 4.700000 or 4.528 as 4.528000. I have also checked the value of LAZY_DECIMAL_CONVERSION, it is true. So I dont think it is a problem with that being set to true. Try something out with the Column properties in Query transform.
I am using DS 3.2/ SQLSERVER 2008.
Edited by: Lakhan Lalla on Oct 31, 2011 12:04 PM -
Analyzer Frontending MS-SQL Server OLAP
Has anyone tried to use Analyzer (5.x) as a front-end for a Microsoft SQL Server OLAP cube? Although the documentation I've seen so far says you can, I have not figured out how to get Analyzer admin to see the SQL cubes.
Ian,
What exactly do you mean by SQL*Server OLAP ? Is it just a 'normal' SQL*Server database which is used for an OLAP application ?
The migration workbench migrates schema objects, triggers, and stored procedures and is not concerned with the application that uses those objects.
And the same with the Oracle OLAP database. Once the data etc has been moved into the database you can then use it for whichever application you want.
If you have concerns apart from moving the actual data then please give us more details.
Regards,
Mike -
Best way to check the HEALTH of SQL server database
We are having SQL server in CLUSTER environments and well configuration i.e. more than 200 GB RAM.Stil we are getting no good response.
Please advise on this so that we will dig before happens.
Cheers,
DB5Hello,
If I understand correctly, you want to improve SQL Server performance.
In SQL Server we have many situation to improve the performance. For example:
• Design efficient schemas.
• Optimize queries.
• Fine-tune indexes.
• Perform efficient transactions.
• Build efficient stored procedures.
We can obtain the best performance and scalability gains in application development. Indexing is considered part of the application development effort. Poor indexes that lead to increased CPU utilization, and memory or disk I/O utilization. You can refer
to the following article about Improving SQL Server Performance.
Reference: http://msdn.microsoft.com/en-us/library/ff647793.aspx
There are many similar issue for your reference.
http://social.technet.microsoft.com/Forums/en-US/home?category=sqlserver&filter=alltypes&sort=relevancedesc&brandIgnore=True&filter=alltypes&searchTerm=sql+server+performance
Regards,
Alisa Tang
Alisa Tang
TechNet Community Support -
How can I get the data array from SQL Server Database?
Hi,
I can write a data array(2D)into a table of my SQL Server Database. The data array was writen to a column with image type. I know a data array is transformed a binary string when writing into database, but I dont know how to get the data array when I fetch the binary string from database.
My question is:
How to transform the binary string into data array? which vi's should I use? I have tried unflatten from string but failed.
Any response is appriciated.
Redhappyxh0518 wrote:
> I can write a data array(2D)into a table of my SQL Server Database.
> The data array was writen to a column with image type. I know a data
> array is transformed a binary string when writing into database, but I
> dont know how to get the data array when I fetch the binary string
> from database.
>
> My question is:
> How to transform the binary string into data array? which vi's should
> I use? I have tried unflatten from string but failed.
In order to use Unflatten from string you first need to Flatten it
before writing it. Also depending on the database driver, the returned
data may actually not be binary but Hexadecimal encoded ASCII which you
would first have to decode to binray.
Rolf Kalbermatter
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions -
Configure Synchronization Connections An error has occurred while accessing the SQL Server database
Hi,
i am getting following error message
Central Administration --> Synchronization Connections
An error has occurred while accessing the SQL Server database or the SharePoint Server Search service.
If this is the first time you have seen this message, try again later. If this problem persists, contact your administrator.
Central Administration --> Manage Profile Service: User Profile Service Application --> Manage User Properties
Error
An unexpected error has occurred.
Troubleshoot issues with Microsoft SharePoint Foundation.
Correlation ID: 3bce5a11-f2dc-4788
Please tell how to fix it.
iffiEvent ID 5555 -> i have change the Timer jobs recycling time AM to PM
for User profile page not display number of count in the page first check services , connection ,
IISRESET /NOFORCE / timer services restart
Deepesh Yevle MCTS
Maybe you are looking for
-
How do you keep your iPhones and iPads separate under the same apple id
I have a family of iPhones and iPads and one apple ID, well needless to say each device is getting face time calls and text messages from eachother. I might add it makes for some pretty interesting conversations. I would like to learn how to keep eac
-
How do I remove backup files from desktop
I am having difficulty removing backup files that are locked from my desktop that I transfered from a backup external hard drive. It starts to delete but whern it gets to 0 it rewrites the file. this happens evn after I answer "remove all locked file
-
i wrote this code i dont how and where to compile and run this servlet import java.io.*; import javax.servlet.*; import javax.servlet.http.*; public class SimpleCounter extends HttpServlet{ int counter = 0; public void doGet(HttpServletRequest reques
-
Project Workspace Document Library Workflow
Hi All, I want to create the out-of-box three state workflow and want create some group for each document type and assign to the workflow. I could not find any option to create new groups. Thanks in advance, Taj
-
CIM (common Information Model) latest version
Hi Everyone, Please help me regarding CIM in connection with SLD. The CIM version for SAP netweaver 2004s is curently 1.4. Do you know the latest version of CIM? Where can I download them because I need it for updating the SLD. Please help me. Thanks