Hide Fname Value Evry Second Row

Apr 20, 2008

need help hide Fname value evry second row
where val =2
i have this table

id fname val
----------------------
11 aaaaa 2
11 aaaaa 1
22 bbbbb 2
22 bbbbb 1
33 ccccc 2
33 ccccc 1
44 ddddd 2
44 ddddd 1


i need to do this
hide Fname value evry second row
where val =2


id fname val
----------------------
11 null 2
11 aaaaa 1
22 null 2
22 bbbbb 1
33 null 2
33 ccccc 1
44 null 2
44 ddddd 1

View 4 Replies


ADVERTISEMENT

Splitting Name Field To FName And Last Name In Package

Apr 2, 2007

Hi



I have a customer data in a flat file (*.csv). It has a field "Name" which has data as James Smith. I want to load the dat in the dimenson table as fields FName="James" and LName="Smith". What type of data transformation should i use and how should i make it happen?



thanks,

chamajid

View 7 Replies View Related

Please Help- How To Add For Evry Row 15 Minutes With Condition

Apr 29, 2008

please need help
i need to create view_circuit like this
for evry row add 15 minutes with condition by station field



Table before
start time@=14:30
ORDER BY 6,9,15
point_collection employee station seated
-----------------------------------------------------------------------------------
start time@=14:30 aaaa 6 station-6
xxxx 9 station-9
nnnnn 9 station-9
cccc 15 station-15
dddd 15 station-15
yyyy 15 station-15
...............................
.........................

Table After
point_collection employee station seated
-----------------------------------------------------------------------------------
14:30 aaaa 6 station-6
14:35 xxxx 9 station-9
14:35 nnnnn 9 station-9
14:40 cccc 15 station-9
14:40 dddd 15 station-9
14:40 yyyy 15 station-9
..................
...................
........
tnx for the help

View 6 Replies View Related

Help How To ? 7 Conditions For Evry Day Check For All Month

Dec 30, 2007

help how to ? 7 conditions for evry day check for all month

a condition "code block" for evry day in the week
like CASE inside CASE
and How to insert it to #Temp table all







Code Block
CREATE PROC YourProc
@StartDate datetime = NULL,
@EndDate datetime = NULL
AS
SET @StartDate = COALESCE(@StartDate,DATEADD(d,DATEDIFF(d,0,GETDATE()),0))--defaulting to todays date if not supplied
SET @EndDate=COALESCE(@EndDate,DATEADD(m,1,@StartDate))--defaults to 1 month from today

WHILE @StartDate <= @EndDate
BEGIN
SELECT CASE
WHEN DATENAME( dw,@StartDate)='Sunday'

---- for Sunday----for Sunday------------for Sunday----for Sunday------v_un

WHEN DATENAME( dw,@StartDate)='Sunday' AND
empid IN (SELECT empid FROM v_un WHERE (shift =45 )
THEN 1
WHEN DATENAME( dw,@StartDate)='Sunday' AND
empid IN (SELECT empid FROM v_un WHERE (shift =51 )
THEN 1
WHEN DATENAME( dw,@StartDate)='Sunday' AND
empid IN (SELECT empid FROM v_un WHERE (shift =11 )
THEN 2
WHEN DATENAME( dw,@StartDate)='Sunday' AND
empid IN (SELECT empid FROM v_un WHERE (shift =12)
THEN 2
WHEN DATENAME( dw,@StartDate)='Sunday' AND
empid IN (SELECT empid FROM v_un WHERE (shift =22 )
THEN 3
WHEN DATENAME( dw,@StartDate)='Sunday' AND
empid IN (SELECT empid FROM v_un WHERE (shift =23)
THEN 3
WHEN DATENAME( dw,@StartDate)='Sunday' AND
empid IN (SELECT empid FROM v_un WHERE (shift =34)
THEN 5
------------------------END for Sunday----for Sunday
SELECT CASE
WHEN DATENAME( dw,@StartDate)='monday'
---- for monday----for monday------------for monday----for monday----FROM v_1
WHEN DATENAME( dw,@StartDate)='monday' AND
empid IN (SELECT empid FROM v_1 WHERE (shift =45 )
THEN 1
WHEN DATENAME( dw,@StartDate)='monday' AND
empid IN (SELECT empid FROM v_1 WHERE (shift =51 )
THEN 1
WHEN DATENAME( dw,@StartDate)='monday' AND
empid IN (SELECT empid FROM v_1 WHERE (shift =11 )
THEN 2
WHEN DATENAME( dw,@StartDate)='Monday' AND
empid IN (SELECT empid FROM v_1 WHERE (shift =12)
THEN 2
WHEN DATENAME( dw,@StartDate)='monday' AND
empid IN (SELECT empid FROM v_1 WHERE (shift =22 )
THEN 3
WHEN DATENAME( dw,@StartDate)='monday' AND
empid IN (SELECT empid FROM v_1 WHERE (shift =23)
THEN 3
WHEN DATENAME( dw,@StartDate)='monday' AND
empid IN (SELECT empid FROM v_1 WHERE (shift =34)
THEN 5
--------------------------END for monday
SELECT CASE
WHEN DATENAME( dw,@StartDate)='Tuesday'

---- for Tuesdayy----for Tuesday----for Tuesday----for Tuesday----from V_2

WHEN DATENAME( dw,@StartDate)='Tuesday' AND
empid IN (SELECT empid FROM v_2 WHERE (shift =45 )
THEN 1
WHEN DATENAME( dw,@StartDate)='Tuesday' AND
empid IN (SELECT empid FROM v_2 WHERE (shift =51 )
THEN 1
WHEN DATENAME( dw,@StartDate)='Tuesday' AND
empid IN (SELECT empid FROM v_2 WHERE (shift =11 )
THEN 2
WHEN DATENAME( dw,@StartDate)='Tuesday' AND
empid IN (SELECT empid FROM v_2 WHERE (shift =12)
THEN 2
WHEN DATENAME( dw,@StartDate)='Tuesday' AND
empid IN (SELECT empid FROM v_2 WHERE (shift =22 )
THEN 3
WHEN DATENAME( dw,@StartDate)='Tuesday' AND
empid IN (SELECT empid FROM v_2 WHERE (shift =23)
THEN 3
WHEN DATENAME( dw,@StartDate)='Tuesday' AND
empid IN (SELECT empid FROM v_2 WHERE (shift =34)
THEN 5
................................................END for Tuesday
/////////
until
Saturday
.....
WHEN DATENAME( dw,@StartDate)='Saturday' AND
...
THEN ..
END
SET @StartDate=DATEADD(d,1,@StartDate)
END
GO





TNX

View 39 Replies View Related

Import Data From Textfile Evry 2 Hours Automtically

Feb 23, 2001

Hello,

Can somebody please help me with the following problem.

I want to import data from a textfile called "Links.txt" into a SQL-server database called "LinkData". The data in this textfile is separated by pipelines. And this import should be done every 2 hours automatically. How can I make a proces or something in SQL server 7 that will fill the database with the data out of this textfile every 2 hours. Please help me. I really don't know.

greetings

R. Jacobs

View 2 Replies View Related

Import Data From Textfile Evry 2 Hours Automtically WITH DTS

Feb 23, 2001

I want to import data from a textfile called "Links.txt" into a SQL-server database called "LinkData". The data in this textfile is separated by pipelines. And this import should be done every 2 hours automatically. How can I make a proces or something in SQL server 7 that will fill the database with the data out of this textfile every 2 hours. Please help me. I really don't know.

I was planning on using DTS for this Only I really don't know how. I tried it with "Data driven query task" in combination with "Text file (source)" and "Microsoft OLE DB Provider for SQL Server". But when I run it, it gives an error. What am i doing wrong??? Help me please

thanx

View 1 Replies View Related

Help Generate A List Of Hours + Mintes Evry 5 Minte

May 20, 2008

need help Generate a list of hours + mintes evry 5 minte
need create new table of hours + mintes evry 5 minte like this

round_time time_list
--------------------------------------------------------------------------

0 00:00
0 00:05
0 00:10
.................................
........................................

0 00:55
1 01:05
1 01:10
.....................................
.....................................
1 01:55
2 02:00
2 02:05
..................................
.......................................
...........................
23 23:50
23 23:55

TNX

View 3 Replies View Related

Help Split List Of Email Add Comma For Evry Email

May 12, 2008

need help
split list of email add comma for evry email
i have tabe "tblLogin" and in this table i have field emall
like this

emall
-----------------------------------------
aaa@hhhh.mm
nnn@hhhh.mm
mmm@hhhh.mm

need to do ilke this



Code Snippet
@list_email = (SELECT emall FROM tblLogin)

--------------------------i get this
-----------------------@list_email=aaa@hhhh.mm ; nnn@hhhh.mm ; mmm@hhhh.mm

@recipients = @list_email










Code Snippet

IF EXISTS( SELECT * FROM [db_all].[dbo].[taliB] )



BEGIN

DECLARE @xml NVARCHAR(MAX)DECLARE @body NVARCHAR(MAX)

SET @xml =CAST(( SELECT

FirstName AS 'td','',

LastName AS 'td','' ,

Date_born AS 'td','' ,

Age AS 'td','' ,

BirthdayToday AS 'td','' ,

BirthdayThisWeek AS 'td'

FROM [Bakra_all].[dbo].[taliB] ORDER BY LastName FOR XML PATH('tr'), ELEMENTS ) AS NVARCHAR(MAX))

SET @body ='<html><H1 align=center>aaaaaaaaaaaaaaaaaaaaaa</H1><body ><table border = 1 align=center dir=rtl>

<tr>

<td>name</td>

<td>fname</td>

<td>date</td>

<td>age</td>

<td>aaaaaaaaa</td>

<td>bbbbbbbbbbbbbbb</td>

</tr>'

SET @body = @body + @xml +'</table></body></html>'

EXEC msdb.dbo.sp_send_dbmail

@recipients =N'rrr@iec.co.il',

@copy_recipients='rrrrr@iec.co.il',

@body = @body,

@body_format ='HTML',

@subject ='ggggggggggggggggggggg',

@profile_name ='ilan'

END

ELSE

print 'no email today'

View 1 Replies View Related

Hide Row When The Sum Is Only In 1 Row

Nov 14, 2007

Hi...

I whant to hide this
Ex.


=Fields!D_FAMILIA_MIS.value

This fields have 4 group and i whant to sum only group added just over 1 line as sub group

I do not speak English well, so it does not lead bad

MC
OVLA

View 1 Replies View Related

How To HIDE SQL Server On LAN?

May 26, 2007

Hi everybody

In my web application I am using SQL Server 2000. But as we all know, its presence in the network is visible to all the clients in the network. Anybody who has SQL Server client installed and knows the password of the database would be able to access DB remotely and this is what I don't want. I want user to access my database only when they are loggedon on physically (directly) on the machine on which SQL Server is installed.

Your replies are awaited.

Thanks in advance.

Regards,
Zulfiqar Dhuka

View 1 Replies View Related

How To Hide Sme Tables In DB

Dec 24, 2001

Configuration:
Windows2000 , SQL7
Three people have administrative priveleges (with priveleges Enterprise admins)
There is special DB in SQL7
Some tables should be hidden from 2 admins (they should be unable to read information from these tables)
Is it possible?
And if it is possible, How to do it?
Thank you very much
Merry Christmas
Happy New Year
Seasons greetings

View 1 Replies View Related

How To Hide A Member?

Jan 14, 2005

I have a dimension named Products with the following hierarchy:

Type
Sub Type
Product

Due to requirements I want that a particular product, whose name is, say, "XYZ" should not be displayed when the user drills down to the lowest level i.e. the Product level.

I tried playing with the Advanced Properties tab but could not make any progress and thus will be grateful for help.

Thanks.

View 1 Replies View Related

Hide Some Parameters

Sep 21, 2005

Hi,
Is it is possible to hide some parameters in report? Also it should be possible to pass values to this hidden parameters from the application. When I did this through Report Manager, some error message like ' the parameter 'XXXX' is read-only. ....' appears.


Thank You

Sreeraj.P.T

View 2 Replies View Related

Hide Logins:-)

Jul 7, 2004

Hi knights,

Pls show me the way to prevent the other users seeing all logins when they logon into SQL Server. Thnks in advance!

View 2 Replies View Related

How To Hide Subtotal

May 28, 2008

Hello,

I have a matrix with subtotal.

I want to hide or show the subtotal by a parameter.

The header of the subtotal is not a problem since it have the "visibility" property.

The problem is that when I'm clicking on the green rectangle to go to the subtotal area itself - It doesn't have the "visibility" property.

So I don't see the header but I see the subtotal date itself.

Any idea on how to resolve this?



Thanks.

View 7 Replies View Related

Hide Textboxes

Feb 25, 2007

Hello Everyone. I need help again.
I have a reports made in VS business intelligence project with a lot of parameters. So it means it automatically creates textboxes of that parameters. I want to hide those textboxes. Pls help.

Thanks
-Ron-

View 3 Replies View Related

Sub To Hide Query

Feb 21, 2008

How can I add a sub in my query so that it can hide and need password to view or edit?

View 6 Replies View Related

Hide/unHide

Dec 26, 2006

dear All,

I want to make a Report with attractive selection parameters.
That I mean, there is a parameter, Tparam (Time Param) which will activate other parameters (3 parameters: TimeA_1, TimeA_2 & TimeA_3. These selection values have been registered in the "Aviable values => non-queried".)

when Tparam selected TimeA_1 then Parameter for TimeA_1 will activated (and the others will be disappeared/hidden), vice versa for the other control (TimeA_2 & TimeA_3)

any idea to do that?



thank you...

View 5 Replies View Related

Trying To Hide A Rectangle

Sep 21, 2007

Hello,

I have a rectangle which contains a chart. Most of the time, the chart has data, so the rectangle should be visible. Sometimes, however, the chart may have no data (zero records). In that case, I would like to hide the rectangle.

Is there any way to "query" data from the report's recordset to see if a certain condition is true.. if so, use that to control the visiblity of the rectangle?

I have one column in the recordset that has many values... the chart will only display data if certain values are returned in the recordset.

Thanks for your advice!

View 1 Replies View Related

How Can I Hide Whitespace

Mar 28, 2008



I am currently working on a rather simple report, it cosists of a table with two columns
The first column contains Employee Names, and the second column contials details of what the have worked on
I have made the second column invisible, and can be made visible when the eployee name column is expanded.
The problem that i am having is that when the second column is collapesed, it still leaves whitespace, in the first column, of how ever many rows that are contained in the second column, is there a way, I can get rid of that whitespace?

Thanks
Chris

View 4 Replies View Related

Hide Row When Value In 'X' Column Is &&<= 0

Nov 15, 2007



I'm creating a report that is grouping the rows per year and month, as it does this there are certain rows that show up that I would like to hide since the value in one of the columns is < = 0. For the purpose of my report I don't needs these rows to be illustrated. How can I do this?

Thanks,Alex

View 1 Replies View Related

Hide Duplicates

Sep 6, 2007

I trying to create a report that looks like this:



Item Shipped OnHand PO# DueDate POQty

1234 0 0 111 8/01/07 12

222 8/08/07 12

333 8/16/07 12

2345 4 0 444 8/04/07 24



I pull back all the data in a single query and the result looks like this...



Item Shipped OnHand PO# DueDate POQty

1234 0 0 111 8/01/07 12

1234 0 0 222 8/08/07 12

1234 0 0 333 8/16/07 12

2345 4 0 444 8/04/07 24



Now I can use the Hide Duplicates property to fix the Item column since the query groups on item guaranteeing uniqueness. But that won't work for the Shipped and OnHand columns because adjacent items may have the same Shipped and OnHand totals. How do I hide the Shipped and OnHand values if and only if the Item is the same? Is this really a problem of hiding duplicates or do I need to break apart my query or find a sub-reporting solution?

View 2 Replies View Related

Hide Aspnet_* Objects

Nov 23, 2007

   Hello, I would like to not have to see the aspnet_ tables and stored procedures that are created when using the Membership, roles, and personalization.  Currently I have to suffer seeing the handful of tables and 40+ stored procedures in both the Visual Studio and the SQL Management tool.  I have found that on a 2000 SQL Server I can execute a command that forces objects to be created as system objects.  If I execute this before creating the objects they become system objects and I don't have to see them any longer.    However, this trick does not work in SQL Server 2005.  So, I would like to know either 1) is there an easy way to hide these objects or 2) is there a way to change the objects to system objects in SQL Server 2005? CodeGuy 

View 5 Replies View Related

Can I Hide Data From A SysAdmin??

Dec 7, 2001

Is is possible to hide "salary" or other sensitive data from a person who is a Sys-Admin. My belief is that there is no way. Please correct me.....

Assumptions: SQL Service account has Local Admin privelege.
Sysadmin can do anything on local machine, including run scripts adding themselves to any default/instance of SQL on the machine.

Please direct me to any other source of information for this topic.

Thanks for your input

View 2 Replies View Related

Hide System Objects In Ent Mgr

Jul 19, 2002

Is there a way to not have system objects (tables, procs) display in Enterprise Manager?

View 1 Replies View Related

Hide Table View

Oct 14, 1999

Hi,

How can I hide all the system tables so that only user tables show in table view.

Thank you very much!

John

View 1 Replies View Related

System Tables And More - How To Hide Them?

Mar 9, 1999

Hi everyone,

I've recently installed MSQL Server 7.0 Standart Version and every time I create a new database, system tables are created and are visible also. That means, I instantely get 18 tables, 20 views, 18 stored procedures and so on. Can I hide them??? I mean, my tables are all mixed with the system tables. If I can hide all the system tables and views and so on please tell me! Thanks.

View 3 Replies View Related

Hide/encrypt Password In Sql Under EM?

Mar 1, 1999

I am setting up several isql job in Enterprise Manager and as a cmdexec job I need to pass the user id and password( -P). I shtere any way not to pass this as text and perhaps hide/encrypt it since any one who opens the task scheduler and looks at the job can read the password?

Thanks.

DAvid Spaisman

View 3 Replies View Related

Can I Hide Displaying A Certain Member?

Apr 25, 2006

Hi,

I have a dimension called customers having the following levels:

ALL
Level 1 CustType
Level 2 Cust Rank
Level 3 Cust Name

Suppose that the possible CustTypes are "Potential", "Active", "Lost".
Is it possible to hide displaying Level 1 and below if the Custtype (Level 1) = "Potential"

View 2 Replies View Related

Hide Folders In Report Mng

May 12, 2008

Hi All,

I would like to control user access to my Report Manager.In detail,I would like to hide some report folders from certain users when they access the Report Manager.Some of the users are not suppose to see certain folders on the report manager,and some users are suppose to see all report folders.

How can I do this?.Where should I include this settings?

View 4 Replies View Related

Hide Command Window

Feb 16, 2007

I am using the SQLCMD function to execute a particular storded procedure every minute. The task schedular calls this batch file to run the stored procedure every minute. The issue is it opens up a command window every minute and is annoying. How can i run this job using sqlcmd and still not have the window pop up.

Is there a way to create a service that can run the batch files without the user knowing that it is running. I am trying to replicate what sql server agent used to do wth msde. i am using sql server express now.

View 3 Replies View Related

Hide Rows In A Table

Oct 19, 2007

hi, i have a table that returns all rows. But i need to hide the rows having the "Order"= false.But i don't wanna do it by querying in the dataset, i just wanna hide these rows."Order" is a column in my table. Does anyone know how this can be done?
Thank you

View 2 Replies View Related

Hide Databases In SQL EM From Dbo Owner

Jul 20, 2005

If i create a new SQL login and give that login db ownership for a test db.When that user adds my SQL Server through his own SQL EM, why does he/shealso see all other objects (databases, sql security logins, DTS, ...)?Is there a way for the user to open SQL EM but only see his/her db andnothingmore?Thank you

View 4 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved