Adding parameter to a MySQL query in MS SQL Server Report Builder
So I have a MySQL DB connected to MS SQL Server Report Builder via ODBC connector. Everything is fine, I can execute queries and put the fields into report.
But I can't add an parameter to the query.
Example query:
SELECT column1, column2 FROM table WHERE column3 = (@parameter1)
The result set is just empty. I think the problem is that I'm using MySQL and not MS SQL. Any suggestion?
Hello Alan,
Named parameters like @param works with SQL Server / .NET data provider, but not for OleDB, here you have to use the question mark instead
SELECT column1, column2
FROM table
WHERE column3 = ? and column9 = ?
When you assign the report parameter to query parameter you have to take care about the order of used ? in query
Olaf Helper
[ Blog] [ Xing] [ MVP]
Similar Messages
-
Query a dataset in MS SQL Server Report Builder and get splitted output of one of the fields
Hi experts,
I have a dataset in MS SQL Server Report Builder containing some rows like the following:
FIELD-1
FIELD-2
FIELD-3
1
efgh
xjhg[R]ztazutsuz[R]9
2
abcd
1234[R]abcd[R]5678
What I need is:
FIELD-1
FIELD-2
FIELD-3
1
efgh
xjhg
1
efgh
ztazutsuz
1
efgh
9
2
abcd
1234
2
abcd
abcd
2
abcd
5678
Can this be done?
I'll be very happy when one finds a solution.
Kind regards,
Petertry like this..
Declare @ta table ([FIELD-1] int, [FIELD-2] nvarchar(100), [FIELD-3] nvarchar(100))
insert into @ta
select 1, 'efgh', 'xjhg[R]ztazutsuz[R]9' union all
select 2, 'abcd', '1234[R]abcd[R]5678'
select t.[FIELD-1],t.[FIELD-2], a.b.value('.','nvarchar(100)') as [FIELD-3] from @ta t
Cross apply
(select cast('<R><C>' + replace(t.[FIELD-3],'[R]','</C><C>')+ '</C></R>' as xml) as XStr ) x
Cross apply x.xstr.nodes('R/C')a(b)
Thanks,
Saurabh
http://www.linkedin.com/in/sbhadauria http://www.experts-exchange.com/M_6313078.html -
QSUF (Query string url filter) and SQL Server reporting services report viewer parameters
Hi,
this is my issue:
I have a SQL Server reporting services web part on a page with a report with 1 parameter, lets say it's a client list
Then i have a QSUF that will be used to filter the clients list through the URL
However, once i connect the filter and the report viewer web part, the parameter goes away and is no longer accessible
I'd like to somehow keep the parameter visible, in case there is no parameter sent through the URL, i would like the user to be able to choose a client from the parameter drop down list
I saw that there is a "send empty if no values are passed" option, but i can't seem to get this working properly and i don't know if this option will make the parameter visible again
Any help would be appreciated
Thanks.Hi,
According to your post, my understanding is that the query string url filter web part not worked well with SQL server reproting services web part.
Did you use the Wiki page layout in your environment?
You can change the page to a web part page, then check whether it work.
There is a similar thread for your reference.
http://social.msdn.microsoft.com/Forums/sharepoint/en-US/4d7584e3-8e1a-48bf-9346-32f8cb480dd1/query-string-url-filter-web-part?forum=sharepointgeneralprevious
Thanks & Regards,
Jason
Jason Guo
TechNet Community Support -
Restore MySQL database file into SQL server
Hi experts,
I have a MySQL Server backup file. How can I restore it to SQL Server?
Or what is the way around getting the database into SQL Server?
ebroHi experts,
I have a MySQL Server backup file. How can I restore it to SQL Server?
Or what is the way around getting the database into SQL Server?
ebro
You cannot restore MySQL backup file on SQL Server.
Please mark this reply as answer if it solved your issue or vote as helpful if it helped so that other forum members can benefit from it.
My TechNet Wiki Articles -
[OT] Alguien conoce un administrador estilo MySQl Front pero para SQL Server?
This is a multi-part message in MIME format.
------=_NextPart_000_0022_01C74AC0.A5217CC0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hola a todos...
Mi titulo no puede ser mas explicito... Alguien conoce un
administrador =
estilo MySQl Front pero para SQL Server? Necesito sincronizar
mi bbdd =
local con la de la Web y esa herramienta me ayudaria en forma
muy =
rapida..
Salu2
-------------------------------------------------------------------------=
RECUERDA: Al postear tus consultas, no OLVIDES colocar el
programa que =
usas.
[DW] =3D Dreamweaver
[FL] =3D Flash
[FW] =3D Fireworks
[OT] =3D Off-Topic=20
-------------------------------------------------------------------------=
--------------=20
Daniel Naranjo
Lo =DAltimo en la Web, Soluciones efectivas
(+58) 414 7962406=20
(+58) 416 2917532=20
(+58) 295 6117632=20
www.loultimoenlaweb.com
www.loultimoenhosting.com
------=_NextPart_000_0022_01C74AC0.A5217CC0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.5730.11" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DVerdana size=3D2>Hola a
todos...</FONT></DIV>
<DIV><FONT face=3DVerdana
size=3D2></FONT> </DIV>
<DIV><FONT face=3DVerdana size=3D2>Mi titulo no
puede ser mas =
explicito... <FONT=20
size=3D2>Alguien conoce un administrador estilo MySQl
Front pero para =
SQL Server?=20
Necesito sincronizar mi bbdd local con la de la Web y esa
herramienta me =
ayudaria en forma muy
rapida..</FONT></FONT></DIV>
<DIV><FONT face=3DVerdana
size=3D2></FONT> </DIV>
<DIV><FONT face=3DVerdana
size=3D2>Salu2</FONT></DIV>
<DIV>
<P><FONT face=3D"Arial, Helvetica, sans-serif"=20
size=3D2><STRONG>--------------------------------------------------------=
-------------------------------</STRONG></FONT><BR><FONT=20
face=3D"Arial, Helvetica, sans-serif" size=3D1>RECUERDA:
Al postear tus =
consultas,=20
no OLVIDES colocar el programa que usas.<BR>[DW] =3D
Dreamweaver<BR>[FL] =
=3D=20
Flash<BR>[FW] =3D Fireworks<BR>[OT] =3D Off-Topic
<BR></FONT><FONT=20
face=3D"Arial, Helvetica, sans-serif"=20
size=3D2><STRONG>--------------------------------------------------------=
-------------------------------</STRONG></FONT><FONT=20
face=3D"Arial, Helvetica, sans-serif" size=3D1>
</FONT></P>
<P><FONT face=3D"Arial, Helvetica, sans-serif"
size=3D2><STRONG>Daniel=20
Naranjo</STRONG><BR>Lo =DAltimo en la Web,
Soluciones =
efectivas</FONT><BR><FONT=20
face=3D"Arial, Helvetica, sans-serif" size=3D1>(+58) 414
7962406 =
<BR>(+58) 416=20
2917532 <BR>(+58) 295 6117632 <BR><A=20
href=3D"
timoenlaweb.com<BR>www.loultimoenhosting.com</A><BR></FONT></P></DIV></BO=
DY></HTML>
------=_NextPart_000_0022_01C74AC0.A5217CC0--This is a multi-part message in MIME format.
------=_NextPart_000_00B3_01C74ACC.C7B992C0
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Alvaro,
Gracias por tu respuesta, este administrador me permitiria
sincronizar =
mi bbdd (Local/Remota)?=20
Disculpa las molestias + Salu2
Daniel N
"=C1lvaro Vidal" <[email protected]> escribi=F3 en
el mensaje =
news:[email protected]...
Personalmente no conozco MySQL Front pero supongo que te
refieres a =
algo como SQL Server Web Data Administrator, el link es: =
http://www.microsoft.com/downloads/details.aspx?FamilyID=3DC039A798-C57A-=
419E-ACBC-2A332CB7F959&displaylang=3Den
Saludos, =C1lvaro.
"Daniel Naranjo" <[email protected]>
escribi=F3 en el =
mensaje news:[email protected]...
Hola a todos...
Mi titulo no puede ser mas explicito... Alguien conoce un =
administrador estilo MySQl Front pero para SQL Server?
Necesito =
sincronizar mi bbdd local con la de la Web y esa herramienta
me ayudaria =
en forma muy rapida..
Salu2
=
-------------------------------------------------------------------------=
RECUERDA: Al postear tus consultas, no OLVIDES colocar el
programa =
que usas.
[DW] =3D Dreamweaver
[FL] =3D Flash
[FW] =3D Fireworks
[OT] =3D Off-Topic=20
=
-------------------------------------------------------------------------=
--------------=20
Daniel Naranjo
Lo =DAltimo en la Web, Soluciones efectivas
(+58) 414 7962406=20
(+58) 416 2917532=20
(+58) 295 6117632=20
www.loultimoenlaweb.com
www.loultimoenhosting.com
------=_NextPart_000_00B3_01C74ACC.C7B992C0
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0
Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.5730.11" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DVerdana
size=3D2>Alvaro,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DVerdana size=3D2>Gracias por tu
respuesta, este =
administrador me=20
permitiria sincronizar mi bbdd (Local/Remota)?
</FONT></DIV>
<DIV><FONT face=3DVerdana
size=3D2></FONT> </DIV>
<DIV><FONT face=3DVerdana size=3D2>Disculpa las
molestias + =
Salu2</FONT></DIV>
<DIV>
<P><FONT face=3D"Arial, Helvetica, sans-serif"
size=3D2>Daniel =
N</FONT></P></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT:
5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"=C1lvaro Vidal" <<A=20
href=3D"mailto:[email protected]">[email protected]</A>>
=
escribi=F3 en=20
el mensaje <A=20
=
href=3D"news:[email protected]">news:eqd63r$jv6$1@forums=
.macromedia.com</A>...</DIV>
<DIV><FONT face=3DArial size=3D2>Personalmente
no conozco MySQL Front =
pero supongo=20
que te refieres a algo como SQL Server Web Data
Administrator, el link =
es: <A=20
=
href=3D"
http://www.microsoft.com/downloads/details.aspx?FamilyID=3DC039A7=
98-C57A-419E-ACBC-2A332CB7F959&displaylang=3Den">
http://www.microsoft=
.com/downloads/details.aspx?FamilyID=3DC039A798-C57A-419E-ACBC-2A332CB7F9=
59&displaylang=3Den</A></FONT></DIV>
<DIV><FONT face=3DArial
size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Saludos,
=C1lvaro.</FONT></DIV>
<BLOCKQUOTE dir=3Dltr=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT:
5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV>"Daniel Naranjo" <<A=20
=
href=3D"mailto:[email protected]">info@NOSPAMloultimoenlaweb=
.com</A>>=20
escribi=F3 en el mensaje <A=20
=
href=3D"news:[email protected]">news:eqd49r$hpg$1@forums=
.macromedia.com</A>...</DIV>
<DIV><FONT face=3DVerdana size=3D2>Hola a
todos...</FONT></DIV>
<DIV><FONT face=3DVerdana
size=3D2></FONT> </DIV>
<DIV><FONT face=3DVerdana size=3D2>Mi titulo no
puede ser mas =
explicito... <FONT=20
size=3D2>Alguien conoce un administrador estilo MySQl
Front pero =
para SQL=20
Server? Necesito sincronizar mi bbdd local con la de la Web
y esa=20
herramienta me ayudaria en forma muy
rapida..</FONT></FONT></DIV>
<DIV><FONT face=3DVerdana
size=3D2></FONT> </DIV>
<DIV><FONT face=3DVerdana
size=3D2>Salu2</FONT></DIV>
<DIV>
<P><FONT face=3D"Arial, Helvetica, sans-serif"=20
=
size=3D2><STRONG>--------------------------------------------------------=
-------------------------------</STRONG></FONT><BR><FONT=20
face=3D"Arial, Helvetica, sans-serif" size=3D1>RECUERDA:
Al postear =
tus=20
consultas, no OLVIDES colocar el programa que
usas.<BR>[DW] =3D=20
Dreamweaver<BR>[FL] =3D Flash<BR>[FW] =3D
Fireworks<BR>[OT] =3D =
Off-Topic=20
<BR></FONT><FONT face=3D"Arial, Helvetica,
sans-serif"=20
=
size=3D2><STRONG>--------------------------------------------------------=
-------------------------------</STRONG></FONT><FONT=20
face=3D"Arial, Helvetica, sans-serif" size=3D1>
</FONT></P>
<P><FONT face=3D"Arial, Helvetica, sans-serif" =
size=3D2><STRONG>Daniel=20
Naranjo</STRONG><BR>Lo =DAltimo en la Web,
Soluciones=20
efectivas</FONT><BR><FONT face=3D"Arial,
Helvetica, sans-serif" =
size=3D1>(+58)=20
414 7962406 <BR>(+58) 416 2917532 <BR>(+58) 295
6117632 <BR><A=20
=
href=3D"
timoenlaweb.com<BR>www.loultimoenhosting.com</A><BR></FONT></P></DIV></BL=
OCKQUOTE></BLOCKQUOTE></BODY></HTML>
------=_NextPart_000_00B3_01C74ACC.C7B992C0-- -
How to export result set from mysql query browser to .sql in oracle
Hi folks:
I was trying to export result set from MySql query browser to Oracle. I could able to do
File->Export Result Set-> Excel format...
What I am trying to get is .sql file so that I can run it as a script in my oracle db. Is there any way we can get .sql file with inserts and delimeters ....?
Did you guys get my question.?
Please throw some light on this....
Could be very appreciable ....
Thanks
Sudhir NaiduHi
Create a sql statement which generates the insert statements.
Something like this:
select 'insert into table1 (column1, column2, column3) values (' ||
column1 || ', ' || column2 || ', ' || column3 || ');' from table 1;
The || sign is the string concatenation sign in Oracle, replace it the appropriate sign in MySql. Export the result set of this query into a file, and you can run it in a SqlPlus.
Ott Karesz
http://www.trendo-kft.hu -
How to change sql server reports parameter direction in report builder 3.0
Hi All,
I have created few reports using Report Builder 3.0 with the data source as SharePoint list. i have created a web part page and added the ".rdl"
file, everything is working as expected. Later, i got a requirement to add a parameter to the report , i did that and when i ran the report in SharePoint page, the parameters shows right side and the parameter ribbon shows the dropdown control on top and "Apply
button" at the bottom. When i presented this to my manager, he says the parameter ribbon looks bad and suggested to put both the controls together and also instead of displaying at right side vertical, display it horizontal.
I have below queries
How can i change the direction of parameter ribbon from vertical to horizontal
How can i bring the controls together (e.g. dropdown list control and button)
How can i add buttons on the report in report builder 3.0
How to get/reflect the data in report without refreshing the page.
Can someone please guide me, how to achieve the above functionalities..
MercuryManUnfortunately, where the parameters are located and the button distance away from the parameters are not something you can customize. Here are the options available for customization:
http://msdn.microsoft.com/en-us/library/bb326214.aspx
Trevor Seward
Follow or contact me at...
  
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs. -
Query used by SQL Server Management Pack for monitoring database backups
I use SCOM 2012 R2 and the SQL Server Management Pack to monitor SQL Server database backups. I believe I am getting false positives. SCOM reports database are not backuped, while in fact they are. So I need to troubleshoot this. I suspect SCOM is querying
the backup history in the msdb database. I want to know which query SCOM uses.
I have tried looking in the monitor's definition but I suspect the query is embedded in the management pack files which are binary. I have also tried running a trace using the SQL Server Profiler on my test environment and overriding the interval to 60 seconds,
but I don't see a relevant query being executed. I also don't see the alert reappear so I suspect SCOM does not honor the interval in a way I would expect.
What query, or other method, does SCOM use to check database backups?
Thanks in advance.Thank you both Ivan and Michael,
I only saw your messages by email and didn't see your screen shot before I extracted the query myself. In my own queries I calculate the backup age in hours instead of days because of daily full backups. Perhaps It will be a good idea to create my own monitors
from scratch like I used to do with Nagios.
I will study the vbscripts and might create my own version which allows the query to be entered as an parameter and move all code to a .Net class which can be called from vbscript as an COM object. This way I hope to reduce the vbscript code to an minimum
while keeping the flexibility of the SCOM Operations Console and the robustness of .Net. I suspect I want to make more non standard monitors in the future.
Regards,
Arjen -
DeadLocks on Query Notifications with SQL Server 2008 SP3
Hello,
according to this article https://support.microsoft.com/kb/975090 the issue with deadlocks on query notifications should be fixed with SQL Server 2008 SP3 (10.0.5500.0). But we still get deadlocks in the following manner:
<resource-list>
<keylock hobtid="72057598393909248" dbid="5" objectname="MyDB.sys.query_notification_1411013420" indexname="cidx" id="lock1731c1f00" mode="RangeX-X" associatedObjectId="72057598393909248">
<owner-list>
<owner id="process573dc8" mode="RangeX-X"/>
</owner-list>
<waiter-list>
<waiter id="process58ddc8" mode="RangeS-U" requestType="wait"/>
</waiter-list>
</keylock>
<keylock hobtid="72057598372872192" dbid="5" objectname="MyDB.sys.query_notification_253437289" indexname="cidx" id="lock800c8780" mode="RangeS-U" associatedObjectId="72057598372872192">
<owner-list>
<owner id="process58ddc8" mode="RangeS-U"/>
</owner-list>
<waiter-list>
<waiter id="process573dc8" mode="RangeS-U" requestType="wait"/>
</waiter-list>
</keylock>
</resource-list>
Is there any need to install another fix?
Thanks in Advance!Hello,
SQL Server 2008 SP4 and all cumulative updates of SP3 do not have fixes related to deadlocks.
Maybe the following workarounds and solutions can help in your scenario.
http://stackoverflow.com/questions/3707137/understanding-deadlocks-with-sql-server-query-notifications
Deadlock Prevention. In case you need to lock multiple conversation groups in a transaction, you need to take the same order to lock the different conversation groups in all transactions, otherwise you will have a deadlock issues.
Source:
http://blogs.msdn.com/b/kangmo/archive/2008/12/17/a-brief-guide-on-sql-server-service-broker.aspx
Try to may transactions more simple and shorter.
Hope this helps.
Regards,
Alberto Morillo
SQLCoffee.com -
Open Query issue in SQL server 2005
I am running following query in SQL Server 2005, remote connection is Oracle. Query runs perfect in oracle.
Any help would be greatly appreciated.
Error is:
OLE DB provider "MSDAORA" for linked server "ORACLEROSTER" returned message "ORA-00911: invalid character ".
select
EMPLOYEEID,
TermDate,
UserName,
ACTION,
DEPTID,
DESCR
from OPENQUERY(ORACLEROSTER,
'SELECT DISTINCT substr(A.EMPLID, 1,10) "EMPLOYEEID"
, TO_CHAR(A.EFFDT,"yyyy-mm-dd") "Term Date"
, SUBSTR(A.NAME, 1, 25) "User Name"
, SUBSTR(A.ACTION, 1, 10) "ACTION"
, SUBSTR(A.DEPTID, 1, 10) "DEPTID"
, SUBSTR(B.DESCR, 1, 20) "DESCR"
FROM sysadm.PS_PERSONNEL_HIST A, sysadm.PS_EMPLMT_SRCH_QRY A1, sysadm.PS_DEPT_TBL B, sysadm.PS_SET_CNTRL_REC B2
WHERE B.DEPTID = A.DEPTID
AND B2.SETCNTRLVALUE = A.BUSINESS_UNIT
AND B2.RECNAME = "DEPT_TBL"
AND B2.SETID = B.SETID
AND A.EMPLID = A1.EMPLID
AND A.EMPL_RCD = A1.EMPL_RCD
AND A1.ROWSECCLASS = "DPPDIFLD"
AND ( A.EFFDT =
(SELECT MAX(A_ED.EFFDT) FROM sysadm.PS_PERSONNEL_HIST A_ED
WHERE A.EMPLID = A_ED.EMPLID
AND A.EMPL_RCD = A_ED.EMPL_RCD
AND A_ED.EFFDT <= SYSDATE)
AND A.EFFSEQ =
(SELECT MAX(A_ES.EFFSEQ) FROM sysadm.PS_PERSONNEL_HIST A_ES
WHERE A.EMPLID = A_ES.EMPLID
AND A.EMPL_RCD = A_ES.EMPL_RCD
AND A.EFFDT = A_ES.EFFDT)
AND A.ACTION = "TER"
AND A.LOCATION IN ("500","600")
AND A.JOBCODE IN ("SR5","SR3","ASR","ASRS","IBP5","IBP3","I53610","I53630","053610","053630")
AND A.EFFDT BETWEEN SYSDATE - 7 AND SYSDATE
AND A.ACTION_REASON <> "ZNS"
AND A.EMPL_STATUS = "T"
AND B.EFFDT =
(SELECT MAX(B_ED.EFFDT) FROM sysadm.PS_DEPT_TBL B_ED
WHERE B.SETID = B_ED.SETID
AND B.DEPTID = B_ED.DEPTID
AND B_ED.EFFDT <= A.EFFDT) )
order by 2;')
sHow about if you make the query into a view on ORACLE and SELECT from the view?
Kalman Toth SQL SERVER 2012 & BI TRAINING
New Book: Beginner Database Design & SQL Programming Using Microsoft SQL Server 2012 -
Oracle query on dblinked SQL Server tables returns ORA-00904 error
Hi,
I have created a dblink to a SQL Server database from Oracle using Generic Connectivity.
The following query returns ORA-00904 Invalid Identifier error in the WHERE clause (tblEmp.Empno)
SELECT "EmpNo","EmpName", "DeptName"
FROM tblEmp@sqlserver,
tblDept@sqlserver
WHERE tblDept.DeptNo = tblEmp.Empno
I had to enclose the column names in double quotes due to case sensitivitiy of the columns, but I can't do the
same for the WHERE clause.
1) So, how do I fix this error ?
2) Also how do I include Deptno column with table alias in the columns list?
(Deptno is ambiguous in Emp and Dept tables)
Regards,
SamAlex
Because using the aliases all the time can become annoying and lead to disparate standards when used by multiple developers. For a one-off query I would go with aliases in the query but if the linked tables are going to be interrogated extensively I would prefer to create vanilla views of the underlying tables so that the aliases aren't necessary.
Just my opinion, it feels a bit cleaner to do it this way - you only do the work once in creating the view and then you don't need to worry about the case sensitivity of the linked database. You can also refer to the source in the name of the view so you don't have to think about different source databases with the same table names.
Cheers
Ben -
Data discrepancy between Webi Report and same Query fired on SQL Server 2k5
Hi ,
We are facing an issue in BO XI R2.
We need to run a Webi report in which negative values for forecasting data for year 2011 and 2012 should be displayed.
When we are running this report for negative values, we are getting message u2018There is no data corresponding to this queryu2019.
Then we tried executing the same query on Database. Here at db level we got the correct required result.
So now we are not able to find the reason for data discrepancy .
Why the same query generated by Webi is providing correct data when fired on reporting database and not when running the Webi Report.
Checklist we have gone through for this troubleshooting is-
-Connections of Universe (Is universe pointing to same database or not)
-Any filter condition present at universe level and at report level.
Could anyone please help on this.
Regards,
VaibhavVaibhav,
Have you tried the following when you are in WebI: go under the Edit Query panel, click on the "SQL" icon, and review the query that is getting generated? At this point you can also click on the "copy" option, then paste this query into your SQL application analyzer and run to see what results are generated. To me, it sounds like the portion trying to generate the "minus" sign might be getting tripped up causing the disconnect....
Thanks,
John -
Parallel Query processing in SQL server
In stored procedure we are processing nearly 10 update statements with in a transaction, because of synchronous query processing it is taking time to process all these queries ,I need to execute all the quires asynchronous processing can any
one help me out how to process quires asynchronously?Hi,
For most cases the need of using asynchronous
statements processing
is resolving using Service Broker
SQL Server Service Broker provides native support for messaging and queuing applications in the SQL Server Database Engine. Service Broker, internal or external processes can send and receive guaranteed, asynchronous messaging by using extensions to
Transact-SQL.
SQL Server Service Broker
http://msdn.microsoft.com/en-us/library/bb522893.aspx
An Introduction to SQL Server Service Broker
http://technet.microsoft.com/en-us/library/ms345108(v=sql.90).aspx
[Personal Site] [Blog] [Facebook] -
Blocking query in SSMS(SQL Server Management Studio)
I am a Fresher in writing queries.
I wrote following a query to block the A/P invoice, if price added in A/P invoice and the Price in Price list is different.
and this invoice should not be able to add by users other than UserSign = 5,6.
IF (@transaction_type='A' OR @transaction_type = 'U') AND @OBJECT_TYPE='18'
BEGIN
If EXISTS(SELECT T1.ItemCode,
T1.Price AS Inv_Price,
T2.U_ListPrice AS Listed_Price
FROM OPCH AS T0
INNER JOIN
PCH1 AS T1 ON
T0.DocEntry = T1.DocEntry
LEFT OUTER JOIN
dbo.[@PRICELISTS] AS T2 ON
T0.CardCode = T2.U_BPCode AND
T1.ItemCode = T2.U_ItemNo
WHERE
(T0.UserSign <> 6) AND
(T0.UserSign <> 5) AND
(T1.DocEntry = @list_of_cols_val_tab_del) AND
(T1.Price <> T2.U_ListPrice)
(T2.U_ListCurrency = T0.DocCur)
BEGIN
SET @error = 123 --1234567991234567918
SET @error_message = 'Deviation in price'
END
After executing, still everyone can add the A/P invoice with price difference.
Please look at the above code and help me to find out my fault to make it correct.
Is there any need to add some condition in where clause?
Regards,
Hitul VariaHi,
Try this:
IF (@transaction_type='A' OR @transaction_type = 'U') AND @OBJECT_TYPE='18'
BEGIN
If EXISTS(SELECT T0.docentry
FROM OPCH T0
INNER JOIN
PCH1 T1 ON
T0.DocEntry = T1.DocEntry
LEFT OUTER JOIN
dbo.[@PRICELISTS] T2 ON
T0.CardCode = T2.U_BPCode AND
T1.ItemCode = T2.U_ItemNo
WHERE
(T0.UserSign <> 6 OR
T0.UserSign <> 5) AND
T0.DocEntry = @list_of_cols_val_tab_del AND
T1.Price <> T2.U_ListPrice and
T2.U_ListCurrency = T0.DocCur)
BEGIN
SET @error = 123 --1234567991234567918
SET @error_message = 'Deviation in price'
END
Thanks & Regards,
Nagarajan -
Extra column to be added while importing data from flat file to SQL Server
I have 3 flat files with only one column in a table.
The file names are bars, mounds & mini-bars.
Table 'prd_type' has columns 'typeid' & 'typename' where typeid is auto-incremented and typename is bars, mounds & mini-bars.
I Import data from 3 files to prd_details table. This table has columns 'pid', 'typeid' & 'pname' where pid is auto-incremented and pname is mapped to flat files and get info from them, now i wanted the typeid info to be received from prd_type table.
Can someone please suggest me on this?You can get it as follows
Assuming you've three separate data flow tasks for three files you can do this
1. Add a new column to pipeline using derived column transformation and hardcode it to bars, mounds or mini-bars depending on the source
2. Add a look task based on prd_type table. use query as
SELECT typeid,typename
FROM prd_type
Use full cache option
Add lookup based on derived column. new column -> prd_type.typename relationship. Select typeid as output column
3. In the final OLEDB destination task map the typeid column to tables typeid column.
In case you use single data flow task you need to include a logic based on filename or something to get the hardcoded type value as bars, mounds or mini-bars in the data pipeline
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs
Maybe you are looking for
-
How can i set a password when i open mozilla firefox homepage
how can i set username and password to the homepage of mozilla firefox
-
Scanning documents with brother printer.
I can scan but then it goes nowhere. How can I get the document that I can see was scanned to my desktop where it says it should be?
-
Help: AM Agent working with load balancing AM Server
Hi, We are trying to set up the policy agent to work with two AM Servers behind a load balancer. The agent deployment document said that in the AMAgent.properties we must set com.sun.am.loadBalancer_enable=true According to the AM deployment guide(ht
-
Business Object 3.1 Edge Series Installation Problem
I am doing the advance installation of Business Object 3.1 Edge series, in which i am using oracle database 10.2. I am getting this error *ORA-12154:* ** TNS:could not resolve the connect identifier specified** Can any one explain?
-
I just got my first MacBook. I need help with downloading all the music off my iPod. I think because I moved from a Dell running Window's Vista some of my music is coded in a way that the Mac doesn't understand...like a .CDA file. Can anyone assist m